I have a Ext JS grid store with autosave
set to false
.
I want to clear ONLY the local store, without affecting/deleting records in the server.
If I try store.removeAll()
, then when the next store write occurs, all records are deleted.
How to call store.removeAll
with clearing all pending changes after it?