PDA

View Full Version : About MVC and Ext.data.Store



andy_ghg
2 Feb 2013, 5:53 AM
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.:)

mitchellsimoens
4 Feb 2013, 1:20 PM
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.

andy_ghg
6 Mar 2013, 1:34 AM
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.^_^