Hi,
I'm using a Kendo grid with MVC. The grid is in batch editing mode using Open Access.
One of the requirements is the possibility to undo an accidental row delete while editing. The delete confirmation is not enough.
When a user edits a lot of rows and accidentally deletes a row, the only option is to cancel the changes. However all changes in the grid are rolled back.
I have implemented a simple undo by hiding the row in the grid and saving the dataitem in a javascript queue.In a SaveChanges event I pop the remaining items on the undo queue and programmatically delete the items.
However if the user changes the filter options of the grid the 'hidden' deleted rows become visible again as the filtering options also hides and unhides rows.
Anyone have an idea for implementing a row undo that survives filtering and sorting ?
Regards,
Marcel
I'm using a Kendo grid with MVC. The grid is in batch editing mode using Open Access.
One of the requirements is the possibility to undo an accidental row delete while editing. The delete confirmation is not enough.
When a user edits a lot of rows and accidentally deletes a row, the only option is to cancel the changes. However all changes in the grid are rolled back.
I have implemented a simple undo by hiding the row in the grid and saving the dataitem in a javascript queue.In a SaveChanges event I pop the remaining items on the undo queue and programmatically delete the items.
However if the user changes the filter options of the grid the 'hidden' deleted rows become visible again as the filtering options also hides and unhides rows.
Anyone have an idea for implementing a row undo that survives filtering and sorting ?
Regards,
Marcel