sortable CGridView with jQueryUI sortable

Simple GridView extension with jquery ui sortable.

Usage ΒΆ

Add column sort (intval) to your table. Add code to your model:

public function behaviors()
{
    return array(
        'sortable' => array(
            'class' => 'ext.sortable.SortableBehavior',
        )
    );
}

Add code to your controller:

public function actions()
{
    return array(
        'sortable' => array(
            'class' => 'ext.sortable.SortableAction',
            'model' => YourModel::model(),
        )
    );
}

Replace:

$this->widget('CGridView', array(

to:

$this->widget('SortableGridView', array(
5 0
20 followers
1 329 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Troy
Created on: Aug 20, 2012
Last updated: 10 years ago

Downloads

show all

Related Extensions