Difference between #2 and #3 of
Creating a jQueryUI Sortable CGridView

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!
[...]
36 0
54 followers
Viewed: 52 219 times
Version: 1.1
Category: How-tos
Written by: blindMoe
Last updated by: rAWTAZ
Created on: Sep 16, 2011
Last updated: 11 years ago
Update Article

Revisions

View all history