开发者

extjs - change url of xmlTreeLoader and reload?

开发者 https://www.devze.com 2022-12-27 05:24 出处:网络
I\'m using extJs and I got a xmlTreeLoader: filterTreeLoader = new Ext.app.BookLoader({ dataUrl:\'sampledata/xml-tree-data.xml\'

I'm using extJs and I got a xmlTreeLoader:

filterTreeLoader = new Ext.app.BookLoader({
    dataUrl:'sampledata/xml-tree-data.xml'
})

Now I want to change the dataUrl ar runtime and reload the tree. I can change the dataUrl, but how do I make a refresh? Can't see a proper method on the extJs api...

        Ext.getCmp('tfProcChainDesc').setValue('TESvfdT');
    // Change the dataUrl
    filterTreeLoader.dataUrl = 'sampledata/xml-tree-data.xml';
    // How to refresh here?

PS: BookLoader extends TreeLoader开发者_如何学运维, so I searched this api... Thanks guys!


Have you tried calling TreeLoader.load()?

0

精彩评论

暂无评论...
验证码 换一张
取 消