DigitalSkyline
16 Apr 2007, 3:40 PM
hi all,
looking to add a dynamic tree to the west panel but I'm not sure how/why this doesn't work. I started with the Feedreader example and am trying to integrate the "source" tree from the dependancy ex.
Also any information on progressive population of the tree from an XML provider would be helpful. Thanks, I can't wait to become enlightened :) Ext looks very promising!
// this is for the file tree
var stree = new xt.TreePanel('exp', {
animate:true,
loader: new xt.TreeLoader({dataUrl:'?action=xmlTree'}),
enableDrag:true,
containerScroll: true
});
new xt.TreeSorter(stree, {folderSort:true});
var sroot = new xt.AsyncTreeNode({
text: 'Root',
draggable:false,
id:'exp-main'
});
stree.setRootNode(sroot);
stree.render();
sroot.expand(false, false);
// west = layout.getRegion('west');
// west.add(stree); /// I tried :/
looking to add a dynamic tree to the west panel but I'm not sure how/why this doesn't work. I started with the Feedreader example and am trying to integrate the "source" tree from the dependancy ex.
Also any information on progressive population of the tree from an XML provider would be helpful. Thanks, I can't wait to become enlightened :) Ext looks very promising!
// this is for the file tree
var stree = new xt.TreePanel('exp', {
animate:true,
loader: new xt.TreeLoader({dataUrl:'?action=xmlTree'}),
enableDrag:true,
containerScroll: true
});
new xt.TreeSorter(stree, {folderSort:true});
var sroot = new xt.AsyncTreeNode({
text: 'Root',
draggable:false,
id:'exp-main'
});
stree.setRootNode(sroot);
stree.render();
sroot.expand(false, false);
// west = layout.getRegion('west');
// west.add(stree); /// I tried :/