Wiki

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

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

Created about a year ago by Maug LeeHow-tos2 comments – viewed 21,022 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.

How to filter CGridView with From Date and To Date datepicker

Created 2 years ago by kiran sharmaTips12 comments – viewed 31,887 times – ( +17 / -3 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

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

Created 2 years ago by bluezedTutorials5 comments – viewed 20,694 times – ( +10 / -1 ) – 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:

CGridView keep focus on the control after filtering

Created 2 years ago by jayalaHow-tos2 comments – viewed 7,859 times – ( +6 ) – version 1.1
You can find the reason why I wrote this article here.
tags: CGridView, filter

Yii CGridView add custom button

Created about a year ago by Arockia JohnsonHow-tos1 comment – viewed 16,622 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

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created about a year ago by VINAY Kr. SHARMAHow-tos5 comments – viewed 15,942 times – ( +5 )
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

Insert a multirow header in CGridView

Created about a year ago by PeppeHow-tos2 comments – viewed 9,623 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.

Take more control of CGridview and model searching (related model or another controller)

Created 11 months ago by KonApazHow-tos5 comments – viewed 18,121 times – ( +5 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

CGridView customized CCheckBoxColumn

Created 9 months ago by chandranTips2 comments – viewed 5,738 times – ( +5 ) – version 1.1
Hi friends,

Update CGridview row separately using ajax request

Created 7 months ago by KonApazHow-tos6 comments – viewed 5,985 times – ( +5 ) – version 1.1
There are cases you want to update a record on CGridview directly