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)
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)
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.
There are cases you want to update a record on CGridview directly
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.
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 h...
<?php $this->widget('zii.widgets.grid.CGridView', array(
'dataProvider' => $dataprovider,
'id'=>'recipient_table',
'selectionChanged'=>'updateEditForm',
'columns' => array(
'rec_id',
'org.nachname',
'org.vorname',
'org_id',
array(
'class'=>'CButtonColumn',
'template'=>'{...
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :
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...
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).
I ran into a problem and on irc we worked it out. Since there is a lack on information on filters in genral i thought i'd start sharing all my findings, might be usefull for other people.
You usually take a model instance passed into your view to provide data to a CGridView in this way:
I used Zaccarias excellent article as the base http://www.yiiframework.com/wiki/145/cjuidialog-for-create-new-model/
First follow the wiki above to create all the required code. Then make the following modifications in your...
Suppose you have an Application in Yii that manages hotels each one has many customers.
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
Inspired by it I extended the CButtonColumn class like this:
Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework
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.