Yii 1.1: 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(),


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


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

Total 2 comments

#13413 report it
yatskanich.sasha at 2013/05/28 03:46am
some problem

It's work very well and easy to install, but only on first page of grid view. I click to next page and it's not work.

I disabled ajaxUpdate in grid view and now it's works in all pages, but now my grid view without ajaxUpdate.

How i can to fix it

#12925 report it
igorska at 2013/04/21 06:33am
Error fix

Hi guys. I fixed some errors into this extension. And add Pull request to author. You can use my report https://github.com/igorska/weee-cms/tree/master/protected/extensions/sortable untill author not approve my bugs fixes

Leave a comment

Please to leave your comment.

Create extension