Wiki

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

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

Updated 8 months ago by yugeneHow-tos2 comments – viewed 23,345 times – ( +7 ) – 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.

View a related field in CGridView

Updated 8 months ago by rafaelt88Tips1 comment – viewed 4,143 times – ( +6 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

Searching and sorting by related model in CGridView

Updated 9 months ago by Kostas Apazidis (KonApaz)Tutorials78 comments – viewed 139,435 times – ( +121 ) – version 1.1
Lets say we have two models and relation between them:

Update specific cgridview html row after AJAX request

Updated 9 months ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 6,382 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 9 months ago by yiimTips0 comments – viewed 9,691 times – ( +3 ) – version 1.1
Hi Friends,

Insert a model record using CGridview

Updated 9 months ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 4,310 times – ( +2 ) – version 1.1
CGridview displays existent rows of the table (using DataProvider)

Advanced CGridview issues - custom button using php and html

Updated 10 months ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 3,537 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 10 months ago by Kostas Apazidis (KonApaz)How-tos6 comments – viewed 7,413 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 10 months ago by CeBeHow-tos2 comments – viewed 6,476 times – ( +3 / -1 ) – version 1.1
Assume that you have teachers and students model.

Yii CGridView add custom button

Updated 10 months ago by CeBeHow-tos1 comment – viewed 19,438 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