extjs - Changing the store of treepanel after an event -


im quite stuck on changing store of extjs treepanel, after specific event retrieved values server :

  "{"listtype":false,"text":"root","children":[{"listtype":false,"text":"window","children":[{"listtype":false,"text":"window","children":[{"listtype":false,"text":"height","children":[],"leaf":true},{"listtype":false,"text":"items","children":[{"listtype":false,"text":"border","children":[],"leaf":true},{"listtype":false,"text":"store","children":[],"leaf":true},{"listtype":true,"text":"columns","children":[],"leaf":false},{"listtype":false,"text":"xtype","children":[],"leaf":true}],"leaf":false},{"listtype":false,"text":"layout","children":[],"leaf":true},{"listtype":false,"text":"title","children":[],"leaf":true},{"listtype":false,"text":"width","children":[],"leaf":true}],"leaf":false}],"leaf":false}],"leaf":false}" 

and want update treepanel 's store that, possible?

you not need change store, need new data. of sort:

var root = treepanel.getrootnode(); root.removeall(); root.appendchild(objectorarraywithchildren); 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -