Wiki

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

Update CGridview row separately using ajax request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos10 comments – viewed 15,781 times – ( +8 / -1 ) – version 1.1
There are cases you want to update a record on CGridview directly

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

Created 4 years ago by Maug LeeHow-tos2 comments – viewed 38,477 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.

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

Created 4 years ago by bluezedTutorials5 comments – viewed 32,146 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:

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Created 4 years ago by LuizTips1 comment – viewed 16,531 times – ( +7 / -1 ) – version 1.1
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

multiple CActiveDataProviders in one CGridView

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos7 comments – viewed 22,117 times – ( +8 / -2 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Insert a multirow header in CGridView

Created 3 years ago by PeppeHow-tos2 comments – viewed 16,460 times – ( +6 / -1 ) – 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.

CGridView keep focus on the control after filtering

Created 5 years ago by jayalaHow-tos4 comments – viewed 10,895 times – ( +6 / -1 ) – version 1.1
You can find the reason why I wrote this article here.
tags: CGridView, filter

Yii CGridView add custom button

Created 3 years ago by ஆரோக்கிய ஜான்சன்How-tos1 comment – viewed 32,923 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

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Created 3 years ago by Louis GacTutorials1 comment – viewed 11,744 times – ( +6 / -1 ) – version 1.1
For each column of the CGridView, we can specify customized buttons : Customize Buttons in CGridWiew

View a related field in CGridView

Created 3 years ago by rafaelt88Tips1 comment – viewed 11,065 times – ( +6 / -1 ) – 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".