TreePanel children and nodes
Hi,
I have a TreePanel which I fill by setting children to its root:
Code:
root: {
nodeType: "async",
expanded : true,
children: [{
text: 'Child 1',
checked: true,
draggable: false,
leaf: false,
expanded: true,
singleClickExpand: true,
children: [{
text: 'Child 1.1',
draggable: true,
checked: true,
leaf: true
} ...
When I try to reach the tree children by
Code:
tree.root.firstChild;
I get a null object.
The same thing with
Code:
tree.root.ChildNodes
However, the method
Code:
tree.root.hasChildNodes()
returns true.
Do you have an explanation?
Regards