0
votes

I have a grid in a view that gets populated by a store. I update store records by calculating some numbers. Therefore, the method getModifiedRecords() returns the one that have been modified. My question comes at this point.

Is it possible to tell when to start getting modified records? For example, I want to make calculations and then update the store. My app requires that at this point getModifiedRecords() should return nothing.

If I make changes to the store later, then it should return modified records.

1

1 Answers

1
votes

getModifiedRecords will return all records that are:

  • new: item.phantom === true && item.isValid()
  • updated: item.dirty === true && item.phantom !== true && item.isValid()

so as soon as if you create a record or set a record field these will be returned by this function.