-
16 Oct 2012 11:45 PM #1
TreePanel children and nodes
TreePanel children and nodes
Hi,
I have a TreePanel which I fill by setting children to its root:
When I try to reach the tree children byCode: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 } ...
I get a null object.Code:tree.root.firstChild;
The same thing with
However, the methodCode:tree.root.ChildNodes
returns true.Code:tree.root.hasChildNodes()
Do you have an explanation?
Regards
-
17 Oct 2012 12:18 AM #2
sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
17 Oct 2012 1:03 AM #3
retunCode:tree.getSelectionModel().select(tree.getRootNode()); tree.selectPath(tree.getRootNode().getPath('text'), 'text');
and getChildAt() doesn't exist. I'm using ExtJs 3.4. I'm sorry I didn't specify it from the beginning.Code:TypeError: Ext.fly(node.ui.wrap) is null
-
17 Oct 2012 8:22 AM #4
Moved to Ext3 forums.


Reply With Quote