Wiki

Articles tagged with "cgridview"X
Displaying 11-20 of 56 result(s).

CGridView Date Range Without Cookies or Session (External Filtering)

Created 8 months ago by ezekielnoobHow-tos5 comments – viewed 4,962 times – ( +3 )
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

How to Display tooltp(qtip) on CGridview dynamic

Created 9 months ago by Ankit ModiTips1 comment – viewed 4,066 times – ( -1 )
Hi Friends,

Display Status image on CGridView column

Created 9 months ago by Ankit ModiTutorials1 comment – viewed 5,518 times – ( +1 / -1 )
How to display status image on admin gridview.

Insert a multirow header in CGridView

Created 9 months ago by PeppeHow-tos2 comments – viewed 6,755 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.

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,128 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...

multiple CActiveDataProviders in one CGridView

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

Search a file size range in CGridView

Created 10 months ago by CrazyCatTips0 comments – viewed 2,901 times – ( +2 )
Working on a report system of files transfert, I had to let the users simply find files by size. I didn't want to have two fields, I prefer a simple text input, with "human syntax".

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created 10 months ago by Maug LeeHow-tos2 comments – viewed 14,457 times – ( +4 )
Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

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.

Adding a date range search for CGridView the easy way

Created about a year ago by mikewalenTips4 comments – viewed 12,968 times – ( +10 ) – version 1.1
After a lot of research, everything I found on adding date range searching to a CGridView advanced search form seemed to involve adding two new public variables (e.g. $date_from, $date_to), 'safe' rules for the new variables, and a rather chunky if/elseif/else check in the search() method. This probably isn't a hassle for most, but because many of the tables in my database contain two or three and sometimes four date columns (e.g. date_created, date_modified, date_deleted etc.), it meant I was having to add up to eight public variables, the corresponding safe rules, and modifying the search() criteria for each date attribute. So, I set about creating a better way and I thought I'd share my work with the community.