ExtJs store datachanged event - How do we know which record got added\modified\updated

2.6k Views Asked by At

As per the docs, DataChanged event gets fired whenever the records in the Store have changed in some way - this could include adding or removing records, or updating the data in existing records

My question is how do we know which record(s) got added\deleted\modified. We only get store reference as the parameter.

1

There are 1 best solutions below

0
On

You don't know which change triggered the datachanged event, however, you can get changed records:

this.getModifiedRecords();
this.getRemovedRecords();
this.getNewRecords();