Wiki

Articles tagged with "cgridview", sorted by ratingX
Displaying 31-40 of 56 result(s).

How to filter CGridView with From Date and To Date datepicker

Created about a year ago by kiran sharmaTips12 comments – viewed 24,897 times – ( +15 / -3 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created about a year ago by bluezedTutorials5 comments – viewed 15,689 times – ( +9 / -1 ) – version 1.1
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried:

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 10 months ago by VINAY Kr. SHARMAHow-tos5 comments – viewed 11,131 times – ( +5 )
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

CGridView keep focus on the control after filtering

Created 2 years ago by jayalaHow-tos2 comments – viewed 6,942 times – ( +5 ) – version 1.1
You can find the reason why I wrote this article here.
tags: CGridView, filter

Take more control of CGridview and model searching (related model or another controller)

Created 4 months ago by KonApazHow-tos5 comments – viewed 9,184 times – ( +5 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

CSqlDataProvider in CGridView

Created about a month ago by KonApazTutorials8 comments – viewed 2,064 times – ( +5 ) – version 1.1
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created about a year ago by le_topTips0 comments – viewed 5,845 times – ( +5 ) – version 1.1
Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

multiple CActiveDataProviders in one CGridView

Created 10 months ago by KonApazHow-tos5 comments – viewed 7,963 times – ( +7 / -1 )
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Insert a multirow header in CGridView

Created 9 months ago by PeppeHow-tos2 comments – viewed 6,756 times – ( +4 )
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

CButtonColumn and Font Awesome icons

Created 8 months ago by DerekCTips3 comments – viewed 7,322 times – ( +4 )
I was looking for a way to use Font Awsome icons instead of the default images in a CGridView -> CButtonColumn. Perhaps this will be useful to someone.