PDA

View Full Version : where is the children attribute of the AsyncTreeNode



occo@163.com
24 Jun 2009, 5:20 PM
var tree = new Ext.tree.TreePanel({
el: 'tree-div',
useArrows: true,
autoScroll: true,
animate: true,
enableDD: true,
containerScroll: true,
border: false,

dataUrl: 'get-nodes.php',

root: {
nodeType: 'async',
text: 'Ext JS',
draggable: false,
id: 'source',
children: [{
text: "One",
leaf: true
}, {
text: "Two",
leaf: false
}]
}
});

tree.render();
tree.getRootNode().expand();

the code above has a AsyncTreeNode class instance, it has a children attribute,
but in help docs AsyncTreeNode class has no children attribute,why?:-/

aconran
24 Jun 2009, 5:32 PM
AsyncTreeNode gets its ability to load children tree nodes through an Ext.tree.TreeLoader.

Check out the TreeLoader documentation

occo@163.com
26 Jun 2009, 5:33 PM
AsyncTreeNode gets its ability to load children tree nodes through an Ext.tree.TreeLoader.

Check out the TreeLoader documentation
thanks for your help!i've found!