CancelChanges
methodsCancels any pending changes in the data source. Deleted data items are restored, new data items are removed, and updated data items are restored to their initial state. Every data item uid will be reset.
A
changeevent will be triggered only when all changes are reverted and will not be triggered when reverting changes for a single model instance.
Parameters:modelkendo.data.Model
The optional data item (model). If specified, only the changes of this data item will be discarded. If omitted, all changes will be discarded.
Specifying a data item (model) for
cancelChangeswill not work if the data item was removed from the collection viaremovemethod.