1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    17
    Vote Rating
    0
    cabennett85 is on a distinguished road

      0  

    Question JsonStore public event load in Sencha Touch?

    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!

  2. #2
    Ext User
    Join Date
    Jul 2010
    Posts
    17
    Vote Rating
    0
    cabennett85 is on a distinguished road

      0  

    Default


    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.

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,166
    Vote Rating
    674
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    There will be a read event in the next build.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Similar Threads

  1. Sencha Touch on iPhone v1 / iPod touch v1 ?
    By palnap in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 28 Oct 2010, 5:30 PM
  2. Using GraphAPI with Sencha Touch
    By gabrielstuff in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 6 Aug 2010, 5:34 AM
  3. Request to expose sencha examples on public site
    By meyerovb in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 1
    Last Post: 15 Jul 2010, 10:12 AM
  4. Sencha touch localstorage
    By ssdesign in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 7 Jul 2010, 9:30 AM

Thread Participants: 1