I know template or visible attribute can make it display or not if I need to display the button but I just want to disable the button. How to make it work
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'customer-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'id',
'first_name',
),
'template'=>'{update}{delete}'
Try
deleteButtonOptionsandupdateButtonOptionsof CColumnButton as