Results 1 to 3 of 3

Thread: About MVC and Ext.data.Store

  1. #1
    Sencha User andy_ghg's Avatar
    Join Date
    Feb 2009
    Location
    MeiLing Yangzhou JiangSu China
    Posts
    30
    Vote Rating
    0
      0  

    Default Answered: About MVC and Ext.data.Store

    I used Ext JS MVC in my project. I have a question about Ext.data.Store.


    What time load data?


    If I load the data in "afterrenderer" event, when I open a new view, it'll be reload the data. If I do not want to reload, how can I do? I just want to reload the data in "creat","update" and "delete" method.

    Sorry about my English.
    I like ExtJs
    ExtJs is My life~!

  2. Do you create the store when you create the component? If so then you can load the store right away and the component that it is attached to should detect the store is loading and mask the component.

    If the store already exists then the afterrender is a valid place to load it.

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    Do you create the store when you create the component? If so then you can load the store right away and the component that it is attached to should detect the store is loading and mask the component.

    If the store already exists then the afterrender is a valid place to load it.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User andy_ghg's Avatar
    Join Date
    Feb 2009
    Location
    MeiLing Yangzhou JiangSu China
    Posts
    30
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    Do you create the store when you create the component? If so then you can load the store right away and the component that it is attached to should detect the store is loading and mask the component.

    If the store already exists then the afterrender is a valid place to load it.
    Sorry, I'm so busy last month, forget this topic.

    Thanks for your reply.^_^
    I like ExtJs
    ExtJs is My life~!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •