Hello
I use YiiBosster TbExtendedGridView in my code and want implement sortableRows feature
I write these codes
$this->widget('bootstrap.widgets.TbExtendedGridView', array(
'sortableRows' => true,
'sortableAttribute' => 'position',
'sortableAjaxSave' => true,
'sortableAction' => 'xadmin/xgallery/gallery/imageSortable',
'afterSortableUpdate' => 'js:function(){}',
'type'=>'bordered',
'dataProvider' => $images,
....
));
Controller
public function actions() {
return array(
'imageSortable' => array(
'class' => 'bootstrap.actions.TbSortableAction',
'modelName' => 'GalleryImage'
));
}
but it dont works and I check $_POST[‘sortOrder’] and understant that $_POST[‘sortOrder’] is equal to original sorting order (Before sorting)
where is problem ?