array(
'url'=>'Yii::app()->controller->createUrl("delete",array("id"=>$data->primaryKey))',
'label'=>'delete',
'options'=>array( // this is the 'html' array but we specify the 'ajax' element
'confirm'=>$alert,
'class'=>'grid_action_set1',
'ajax'=>array(
'type'=>'POST',
'url'=>"js:$(this).attr('href')", // ajax post will use 'url' specified above
'success'=>'function(data){
if(data == "true"){
$.fn.yiiGridView.update("liquor-category-grid");
return false;
}else{
window.location="admin?del=exist";
return false;
}
}',
),
),
),