5 Aug 2010 9:36 AM #1
JsonStore public event load in Sencha Touch?
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!
5 Aug 2010 2:17 PM #2
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.
5 Aug 2010 4:53 PM #3
- Join Date
- Apr 2007
- Sydney, Australia
- Vote Rating
There will be a read event in the next build.Evan Trimboli
Twitter - @evantrimboli
Don't be afraid of the source code!
By palnap in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 28 Oct 2010, 5:30 PM
By gabrielstuff in forum Sencha Touch 1.x: DiscussionReplies: 3Last Post: 6 Aug 2010, 5:34 AM
By meyerovb in forum Sencha Touch 1.x: Examples and ShowcasesReplies: 1Last Post: 15 Jul 2010, 10:12 AM
By ssdesign in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 7 Jul 2010, 9:30 AM