some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :
Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.
A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?
Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.
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...
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:
Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework
Hi friends,
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features
Let's take the example of the above article to display an email button next to a delete button:
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...
You can find the reason why I wrote this article here.
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.
Inspired by it I extended the CButtonColumn class like this:
This will call the controller function using AJAX instead of redirecting the user to the url using GET parameters.
There are cases you want to update a record on CGridview directly
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
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...