Wiki

Articles tagged with "cgridview", sorted by ratingX
Displaying 31-39 of 39 result(s).

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created 2 months ago by le_topTips0 comments – viewed 2,817 times – ( +5 )
Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

CGridView keep focus on the control after filtering

Created about a year ago by jayalaHow-tos0 comments – viewed 5,279 times – ( +4 )
You can find the reason why I wrote this article here.
tags: CGridView, filter

Adding a link to a CDataColumn

Created 3 months ago by le_topTips4 comments – viewed 3,075 times – ( +3 )
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

Exporting CGridView results to CSV file

Created about a year ago by RusAlexTutorials8 comments – viewed 16,630 times – ( +6 / -2 )
A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.
tags: cgridview, export, csv

Customize CGridView columns directly in your view

Created 10 months ago by clapasTips2 comments – viewed 10,169 times – ( +2 / -1 )
You usually take a model instance passed into your view to provide data to a CGridView in this way:

Using CJuiDialog to edit rows in a CGridView

Created 2 years ago by Russell EnglandTips7 comments – viewed 19,347 times – ( +2 / -1 )
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

CGridView and AjaxForm Connect

Created 2 years ago by PinkBrainPlanHow-tos2 comments – viewed 14,338 times – ( +1 )
As I'm new to the framework (2 weeks) - I tried to build a functionallity I already use a lot in my old framework (PRADO). This means combining a GridView with a form. And this in one page, what allows you to select a record from the grid and view the values in the same page without jumping to a new page.
tags: Ajax, Form, CGridView

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 7 months ago by Xgamer99Tips3 comments – viewed 4,351 times – ( +1 )
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

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

Created 17 days ago by Maug LeeHow-tos2 comments – viewed 1,595 times – ( +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.