PDA

View Full Version : Store doesn't raise load event



hieu79vn
29 Aug 2012, 8:05 AM
Hi

I have a store and reload it by store.loadData('staticjson data')
But the load event isn't caught
Do you know why? And which event I should use to catch this event?

Thank you

sasklacz
29 Aug 2012, 8:48 AM
What store are you using, how and where are you listening to the event ?

Izhaki
29 Aug 2012, 8:51 AM
If you look at the code (http://docs.sencha.com/ext-js/4-1/source/Store.html#Ext-data-Store-method-loadData), you'll see that loadData doesn't fire a load event.

loadRawData does.

But loadData calls, loadRecords, which will fire `datachange` and `refresh` events.