Wiki

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

CGridView: Display the full record (actionView) in a CJuiDialog

Created 6 years ago by JobloTips7 comments – viewed 44,416 times – ( +15 / -1 ) – version 1.1
If you show a model (with a lot of attributes) partially in a CGridView, it can be helpful when the user can take a quick look at the full record with all attributes without displaying the view as a page and afterwards returning back to the gridview.

Filter / Search with CListView

Created 6 years ago by JohnPollardHow-tos9 comments – viewed 44,197 times – ( +30 / -1 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Creating a jQueryUI Sortable CGridView

Created 6 years ago by blindMoeHow-tos23 comments – viewed 42,795 times – ( +48 / -2 ) – version 1.1
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 6 years ago by xrxHow-tos17 comments – viewed 41,977 times – ( +25 / -1 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

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

Created 4 years ago by Maug LeeHow-tos2 comments – viewed 40,229 times – ( +8 / -1 ) – 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.

Using CJuiDialog to edit rows in a CGridView

Created 6 years ago by Russell EnglandTips8 comments – viewed 34,356 times – ( +4 / -2 ) – version 1.1
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

Yii CGridView add custom button

Created 4 years ago by Arockia Johnson SRHow-tos1 comment – viewed 34,344 times – ( +6 / -1 ) – 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

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 5 years ago by bluezedTutorials5 comments – viewed 33,469 times – ( +10 / -2 ) – version 1.1
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried:

Customize CGridView columns directly in your view

Created 5 years ago by clapasTips4 comments – viewed 33,223 times – ( +3 / -3 ) – version 1.1
You usually take a model instance passed into your view to provide data to a CGridView in this way:

Adding a date range search for CGridView the easy way

Created 4 years ago by mikewalenTips6 comments – viewed 32,699 times – ( +12 / -2 ) – 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.