My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully dele...
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.
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.
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'user-grid',
'dat...
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.
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.
Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework
Inspired by it I extended the CButtonColumn class like this:
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
Suppose you have an Application in Yii that manages hotels each one has many customers.
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...
You usually take a model instance passed into your view to provide data to a CGridView in this way:
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.
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 =).
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?
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...
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :
<?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'=>'{...