How Do You Update Sortable Data After Delete?

I was wondering how you would update jui sortable data after deletion of an item via ajax.

i use on my ajax buttons something like this


for listview and grid view. i was wondering if there was something for the cjuisortable widget that did the same.

or if there was an option in the sortable widget to force an update and i could call that.

$this->widget('zii.widgets.jui.CJuiSortable', array(

'id' => 'orderList',

'items' => $sortableItems,

'options' => array(


  'receive'=>'js:function (event, ui) {"copied", true);}'



thanks for any help!


In the controller again sort with sort criteria. that is the only solution