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
Post a Comment