Articles tagged with "cgridview", sorted by date (updated)X
Displaying 1-10 of 56 result(s).

two or more different collected data in one CGridView

Updated 10 days ago by CeBeHow-tos2 comments – viewed 3,762 times – ( +3 / -1 ) – version 1.1
Assume that you have teachers and students model.

Yii CGridView add custom button

Updated 10 days ago by CeBeHow-tos1 comment – viewed 7,902 times – ( +6 ) – version 1.1
Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework

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

Updated 10 days ago by CeBeHow-tos5 comments – viewed 9,175 times – ( +5 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

Saving CGridView filter

Updated 10 days ago by CeBeTutorials2 comments – viewed 1,679 times – ( +26 ) – version 1.1
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

CGridView customized CCheckBoxColumn

Updated 10 days ago by CeBeTips2 comments – viewed 2,203 times – ( +4 ) – version 1.1
Hi friends,

CSqlDataProvider in CGridView

Updated 10 days ago by CeBeTutorials8 comments – viewed 2,058 times – ( +5 ) – version 1.1
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

Using CJuiDatePicker for CGridView filter

Updated about a month ago by KonApazHow-tos12 comments – viewed 27,726 times – ( +19 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Adding a date range search for CGridView the easy way

Updated 5 months ago by mikewalenTips4 comments – viewed 12,964 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.

CButtonColumn and Font Awesome icons

Updated 6 months ago by angeloziTips3 comments – viewed 7,319 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.

Using filters with CGridView and CArrayDataProvider

Updated 6 months ago by yugeneHow-tos30 comments – viewed 40,249 times – ( +20 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.