PDA

View Full Version : is it possible to restore a removed record from store before doing sync()



maneljn
31 Oct 2012, 9:06 AM
is it possible to restore a removed record from store before doing sync()

the record is in store..getRemovedRecords(), and i want to restore it to non deleted state.

James Goddard
31 Oct 2012, 9:51 AM
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.Store-method-rejectChanges

T (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.Store-method-rejectChanges)hat will remove all changes but it's a pretty simple function if you wanted to do a modified version that only reject's one record.