PDA

View Full Version : Store/Model event that triggers grid refresh



senchatized
12 Feb 2014, 11:17 PM
What is the store/model event that triggers the refresh/recreation of the rows in Grid upon call to store.load? I am using ExtJS4.2.2

scottmartin
13 Feb 2014, 1:12 PM
Are you looking for onDataChange or onMetaChange

You can have a look at the code:



store.load()
:: loadToPrefetch()
me.fireEvent('datachanged', me);
me.fireEvent('refresh', me);
me.fireEvent('load', me, records, true);

senchatized
13 Feb 2014, 9:55 PM
Thanks. I'm looking for the one being listened to/handled by Grid(or its super/subclasses) that triggers it to recreate the rows i.e. something like on('datachange', me.recreateRows ... ) in Grid., but that gave me an idea which ones to look for.