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

      0  

    Default Answered: About MVC and Ext.data.Store

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    873
    Answers
    3567
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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

      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~!

Thread Participants: 1