CGridView after delete

Hello,

CGridView updates grid’s content after a deletion based on success state of the ajax call. How can I prevent this behavior?

I would like the Grid updates its content based on the response of the call and not if the call was successful.

Regards.

There is no option for that…

You can use a custom button… or just create a custom click JS function for the default delete button…

It was better if the combination of success && data values were the indicator for grid to reload itself or not… well,which makes the data variable useless to the developer.

What I have done so far to prevent the exception getting dumped as an alert, is catching the exception upon failed deletion… but still it reloads the grid.

Anyway, I will switch to your approach.

Thanks.