PDA

View Full Version : JsonStore public event load in Sencha Touch?



cabennett85
5 Aug 2010, 9:36 AM
Good day everybody,

I've noticed that the Ext api includes a public event "load" for the JsonStore that the sencha touch api does not. Is this a feature that won't be included? Is there an equivalent way to do this that I'm missing?

Currently I'm using the datachanged event attached to my JsonStore, which works, but it fires twice when the data loads instead of once as I'd assume "load" would cause.

Thanks for the responses, I'm still learning a lot about event handling/the framework and what not, so it's all a learning experience for me!

cabennett85
5 Aug 2010, 2:17 PM
I stopped the event from firing twice by purging the "datachanged" listener on the JsonStore when the event fires the first time. Probably not the best way to do it but working for now until I find a better way.

evant
5 Aug 2010, 4:53 PM
There will be a read event in the next build.