1. In your gridview, modify the update button like this:
array(
‘class’=>’CButtonColumn’,
‘template’=>’{update}{delete}’,
‘buttons’=>array(
‘update’=>array(
‘url’=>’Yii::app()->createUrl(“employee/educationUpdate”, array(“id”=>$data->id))’,
),
),
),
2. Then,add this javascript code:
$(‘.update’).click(function(){
var url=$(this).attr(‘href’);
eduUpdate(url); //this function is used to open dialog box *write your own dialog box*
return false;
});
