Customize CGridView

Hi, it seems to me that CGridView is very powerful, but it lacks on tuts/documentation… :( anyway I would like to add columns filtering (I’m looking on a pair of threads), but also I would like to add functionalities such as “Select All”, “Unselect all” (I’ve just look at this with CCheckBoxColumn class), but also I would like to change page-per-view number and perform actions (choosen a dropdown list) on selected rows.

I mean, I would like to do something like this:

Any suggest/hint/tutorial? :)




What are you bumping here exactly?

There are many topics on filtering in the forum…

Select all/unselect all can be made by using checkBoxColumn - has been enhanced in Yii 1.1.6 but had some errors that has been resolved in Yii 1.1.7

As for page-per-view… Mike has given us the solution a while ago - and recently Mahdi has summarized it here -

Hello Sir! Can you tell me how to delete the select all in CGridView… Okay I have selected already some of the data in CGridView using the CCheckBoxColumn, I wonder how to create a delete button in order to delete the selected data…

Thanks! :)