Proxy Sencha Touch 1.*如何在查看嵌套列表之前加载数据?
在NestedList中,我通过代理在TreeStore中加载数据。然后我在proxy中更改url并读取它并显示更新的NestedList,但首先显示旧数据,但仅在屏幕上更新一段时间后才显示。救命啊 通过添加Proxy Sencha Touch 1.*如何在查看嵌套列表之前加载数据?,proxy,sencha-touch,nested-lists,Proxy,Sencha Touch,Nested Lists,在NestedList中,我通过代理在TreeStore中加载数据。然后我在proxy中更改url并读取它并显示更新的NestedList,但首先显示旧数据,但仅在屏幕上更新一段时间后才显示。救命啊 通过添加 app.stores.architecturalPlaceStore.proxy.url = urlString+"qrcode/load-arch-places?pid="+window.localStorage.getItem("cur-root-nid"); app.stores.a
app.stores.architecturalPlaceStore.proxy.url = urlString+"qrcode/load-arch-places?pid="+window.localStorage.getItem("cur-root-nid");
app.stores.architecturalPlaceStore.read();
app.stores.architecturalPlaceStore.on("read",function(store,records,index){
Ext.dispatch(
{
controller: 'controller',
action: 'archPlaces',
historyUrl: 'archPlaces',
animation: {
type: 'slide'
}
});
})
这是给控制器的:
archPlaces:function()
{
console.log("Arch places function");
if ( ! this.archPlaceSelector)
{
globalMask[2].show();
this.archPlaceSelector = this.render({
xtype: 'ArchPlaceSelector',
renderHidden: true
});
}
this.application.viewport.setActiveItem(this.archPlaceSelector);
},
Sencha Touch 1中TreeStore的“加载”事件。*未开火!!是虫子在使用新数据呈现嵌套列表之前,我是否可以清除该列表中的数据?