Wiki

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

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Updated about a year ago by le_topTips1 comment – viewed 3,315 times – ( +1 ) – version 1.1
Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Updated about a year ago by Louis GacTutorials1 comment – viewed 6,225 times – ( +6 ) – version 1.1
For each column of the CGridView, we can specify customized buttons : Customize Buttons in CGridWiew

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

Updated about a year ago by yugeneHow-tos2 comments – viewed 27,493 times – ( +8 ) – version 1.1
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.

Searching and sorting by related model in CGridView

Updated about a year ago by Kostas Apazidis (KonApaz)Tutorials86 comments – viewed 155,759 times – ( +125 ) – version 1.1
Lets say we have two models and relation between them:

Update specific cgridview html row after AJAX request

Updated about a year ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 8,285 times – ( +2 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

How to change the confirmation message on admingridview button and call a ajax..Dynamic

Updated about a year ago by yiimTips0 comments – viewed 11,694 times – ( +3 ) – version 1.1
Hi Friends,

Insert a model record using CGridview

Updated about a year ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 6,001 times – ( +2 ) – version 1.1
CGridview displays existent rows of the table (using DataProvider)

Advanced CGridview issues - custom button using php and html

Updated about a year ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 4,226 times – ( +1 ) – version 1.1
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)

Update CGridview row separately using ajax request

Updated about a year ago by Kostas Apazidis (KonApaz)How-tos9 comments – viewed 9,698 times – ( +6 ) – version 1.1
There are cases you want to update a record on CGridview directly

two or more different collected data in one CGridView

Updated about a year ago by CeBeHow-tos2 comments – viewed 7,375 times – ( +3 / -1 ) – version 1.1
Assume that you have teachers and students model.