Revision #3 has been created by rAWTAZ on Dec 7, 2012, 1:46:37 PM with the memo:
sort() function -> actionSort() method
« previous (#2)
Changes
Title
unchanged
Creating a jQueryUI Sortable CGridView
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
sortable, cgridview, jqueryui
Content
changed
[...]
Here are the basic steps to achieve this:
1. Make sure your database table has a 'sortOrder' field.
2. (Optional) Add the 'sortOrder' field to your Rules() function in your model
3. Add the 'sort()' functionactionSort()' method to your controller to apply the sorting via ajax
4. Add jQuery UI to your view that has the CGridView
5. Setup the jQuery UI Code to work with the CGridView in question
6. (Optional) Apply the sorting to your model's search() function if need be
So lets get started![...]