I don’t like using ajax in admin page (with CGridView) because it has some problem with bookmarking. So I want to disable it. But I can’t find the property to do that, according to the api reference.
In templates set you own template ‘{mydeletebutton}’
'columns'=>array{
array(
'class'=>'CButtonColumn',
'template'=>'{mydeletebutton}',
'buttons'=>array(
'mydeletebutton' => array(
'label'=>'...', // text label of the button
'url'=>'...', // a PHP expression for generating the URL of the button
'imageUrl'=>'...', // image URL of the button. If not set or false, a text link is used
'options'=>array(...), // HTML options for the button tag
'click'=>'...', // a JS function to be invoked when the button is clicked
'visible'=>'...', // a PHP expression for determining whether the button is visible
),
),
),
),
because delete click is allredy predifined so you cant change it
array(
'class'=>'CButtonColumn',
'template'=>'{delete}',
'buttons'=>array(
'delete' => array(
'click'=>'', // a JS function to be invoked when the button is clicked
),
),
),
),