-
29 Sep 2009 6:54 PM #1
Catching removed records in EditorGridPanel
Catching removed records in EditorGridPanel
Hello experts,
Would like to ask if it is possible for me to retrieve the records that was removed in the EditorGridPanel using remove() method. What I need to do is get all the changes in a certain EditorGridPanel. Using getModifiedRecords() I can get all the modified records.
Thanks!Good design is more important than the underlying technology.
-
29 Sep 2009 8:30 PM #2
Just hook onto the store's 'remove' event and cache them whereever appropriate, e.g.:
Code:new Ext.data.Store({ ...your store config... ,removedRecords: [], ,listeners: { remove: function(store, rec, idx) { store.removedRecords.push( rec ); } } ,clearRemoved: function() { this.removedRecords = []; } });
-
29 Sep 2009 8:39 PM #3
Thanks! Really a great help. :-)
Good design is more important than the underlying technology.



Reply With Quote