PDA

View Full Version : Ext.data.Store.remove() does not remove records from modified records array



phillipL
28 Jun 2007, 11:45 PM
Hello,

I have a grid with a connected data store. Now I add a record to the store and add some data to its columns, so the record is stored also in the modified array. If I remove this record using the remove() method of the Ext.data.Store class the record still remains in the modified array of the store.

I think this behavior is a bug, because all modified records of a Store should be contained in the store.

Regards,
Phillip

jack.slocum
29 Jun 2007, 12:40 AM
The modified array contains records changed to data in the store over it's life time - until explicitly rejected or committed. So if a record is dirty, you should reject or commit that change before removing it.