PDA

View Full Version : TreeLoader from memory JSON?



Sesshomurai
15 Aug 2008, 4:46 PM
EXT folk and resident genius'

I searched the forums for a way to use a memory json reader or basic json object to update the nodes of a tree (entire tree actually). I found this.



var root3 = new Tree.AsyncTreeNode({
text: 'Concept',
draggable:false,
id:'id',
children:response.responseText
});

tree2.setRootNode(root3);
tree2.render();
root3.expand(true,false);


But the post was a bit old and the above code doesn't seem to work for me. Is there a better way to:


Declare a proxy or store for a TreeLoader?
Update/Replace a trees nodes from an existing JSON object?


Off to search more!
Sessh