Wiki

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

Yii CGridView add custom button

Updated about a year ago by CeBeHow-tos1 comment – viewed 23,424 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 about a year ago by CeBeHow-tos5 comments – viewed 24,379 times – ( +5 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

Saving CGridView filter

Updated about a year ago by CeBeTutorials5 comments – viewed 5,824 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 about a year ago by CeBeTips2 comments – viewed 8,464 times – ( +5 ) – version 1.1
Hi friends,

CSqlDataProvider in CGridView

Updated about a year ago by CeBeTutorials8 comments – viewed 14,337 times – ( +8 ) – 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-tos14 comments – viewed 41,088 times – ( +26 ) – 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 22,529 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 57,246 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 77,141 times – ( +27 / -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,793 times – ( +1 )
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).