Hi there,
I’m facing a problem with CGridView update and delete button.
Actually I’ve configured delete and updateButtonUrl as
$this->widget('zii.widgets.grid.CGridView', array(
...
'columns' => array(
array(
'class' => 'CButtonColumn',
'header' => 'Action',
'template' => '{update} {delete}',
'updateButtonUrl' => '__URL__."/update/" . $data->primaryKey',
'deleteButtonUrl' => '__URL__."/delete/" . $data->primaryKey',
),
),
));
URL I found after page load for update button is:
http://localhost/npr...iners/update/11
[b]But after Ajax refresh/reload of CGridView url changes as:[b]
[i]http://localhost/npr...s-grid/update/6[i]
How can I solve this problem. I want it to be always like http://localhost/npr...iners/update/11
THANKS IN ADVANCE