Wiki

Articles tagged with "cgridview", sorted by date (updated)X
Displaying 21-30 of 65 result(s).

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

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

Saving CGridView filter

Updated 11 months ago by CeBeTutorials5 comments – viewed 5,227 times – ( +27 ) – 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 11 months ago by CeBeTips2 comments – viewed 7,194 times – ( +5 ) – version 1.1
Hi friends,

CSqlDataProvider in CGridView

Updated 11 months ago by CeBeTutorials8 comments – viewed 11,444 times – ( +7 ) – 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 year ago by Kostas Apazidis (KonApaz)How-tos13 comments – viewed 37,441 times – ( +24 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Adding a date range search for CGridView the easy way

Updated about a year ago by mikewalenTips5 comments – viewed 19,949 times – ( +12 ) – 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.

Using filters with CGridView and CArrayDataProvider

Updated about a year ago by yugeneHow-tos32 comments – viewed 53,104 times – ( +21 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

Updated about a year ago by Gerhard LiebenbergTutorials20 comments – viewed 71,429 times – ( +26 / -1 ) – version 1.1
This wiki is a step-by-step example explaining how the controller, model and the view's CGridView work together. It explains simple things - as well as more complex things that you will anyway quickly have to know. So, even if you don't use dynamic gridviews, take a morning off and thoroughly work through this tutorial. It should save you lots of struggling.

Multi Data Provider

Updated about a year ago by Sharon LavieTips0 comments – viewed 6,299 times – ( +1 )
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

Display image on CGridView column and open a fancy-box

Updated about a year ago by Ankit ModiTutorials0 comments – viewed 9,103 times – ( +1 / -1 )
1) Add a fancy-box extension on admin page