1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    22
    Vote Rating
    0
    murraybozinsky is on a distinguished road

      0  

    Default TreePanel.getNodeById() fails

    TreePanel.getNodeById() fails


    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!
    Last edited by murraybozinsky; 25 Feb 2008 at 4:14 AM. Reason: ext 2.0

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar