Hi,
I'm using a Ext.TreePanel with Ext 2.0.2. After rendering the tree I try to select the last Path selected by the user (node-id is saved in profile).
I'm doing it like that:
Code:
tree.selectPath(tree.getNodeById(id).getPath());
tree.getNodeById(id) returns null, which I do not understand since I'm logging the tree-Object and the id prior to my selectPath code-line and thus I know that there is a node by that id in my tree...
In addition I use exactly that code-line in the contextmenu-event of each node and it works fine there:
Code:
child.on('contextmenu', function(node, e) {
tree.selectPath(tree.getNodeById(node.id).getPath());
node.expand();
});
Any suggestions? Thanks in advance!