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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi