View Full Version : Is there a way to keep track of added records

23 Apr 2007, 7:21 AM
I know that Ext keeps track of modified records. However it doesn't look like it keeps track of added records. How are you keeping track of added records.

I know there is an event that gets fired when records added. However I really don't want to handle an extra event. One thought I had been toying around with is having a newRecord property. So I would do something like:

new Ext.data.Record({description:'this is a test', newRecord:true});

Then I would loop through my records to find the newRecords. How are you handling new records. Do I have a good approach?



26 Apr 2007, 11:44 PM
Did you try the getModifiedRecords() of the Store object?