Wiki

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

Insert a multirow header in CGridView

Updated 15 days ago by PeppeHow-tos2 comments – viewed 8,790 times – ( +5 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

multiple CActiveDataProviders in one CGridView

Updated 17 days ago by NashiHow-tos6 comments – viewed 10,886 times – ( +7 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Display Status image on CGridView column

Updated 2 months ago by Ankit ModiTutorials1 comment – viewed 7,283 times – ( +1 / -1 ) – version all
How to display status image on admin gridview.

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

Updated 2 months ago by le_topTips1 comment – viewed 1,517 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 2 months ago by Louis GacTutorials0 comments – viewed 1,814 times – ( +4 ) – 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 2 months ago by yugeneHow-tos2 comments – viewed 18,970 times – ( +4 ) – 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 2 months ago by rafaelt88Tips1 comment – viewed 1,561 times – ( +5 ) – 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 4 months ago by KonApazTutorials75 comments – viewed 123,685 times – ( +112 ) – version 1.1
Lets say we have two models and relation between them:

Update specific cgridview html row after AJAX request

Updated 4 months ago by KonApazHow-tos3 comments – viewed 3,493 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 4 months ago by yiimTips0 comments – viewed 7,458 times – ( +3 ) – version 1.1
Hi Friends,