This is a migrated thread and some comments may be shown as answers.

dataSource and kendoGrid don't sync on server side error

0 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 06 Aug 2012, 01:48 PM
kendoGrid automatically removes a row from the grid once the delete button has been clicked. However, I don't want this to happen if the server throws an error. 

I've half-resolved the issue by calling grid.dataSource.read() on errors so that the grid reloads the not-yet-deleted row. However, on any other command, the grid continues to try to delete this row and continues to throw the same error. 

I want my grid to try to delete a row on the server and remove the row from the grid when the action is complete. If the server throws an error, I want the grid to display the error and stop trying to delete the entry. How do I do this?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Share this question
or