在我的 NestedList 中,我通过 TreeStore 中的代理加载数据。然后我更改代理中的 url 并阅读它并显示我更新的 NestedList,但首先显示旧数据,但只有在屏幕上更新了一段时间后。请帮忙!
问问题
354 次
1 回答
0
通过添加解决
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 的“加载”事件。* 未触发!这是错误!
于 2012-07-26T10:46:22.523 回答