Results 1 to 3 of 3

Thread: Treepanel - Set Selected Node

  1. #1
    Member
    Join Date
    Dec 2008
    Location
    Posts
    745

    Treepanel - Set Selected Node

    How do I set - after tree build - the selected node

  2. #2
    Ext.NET - Dev Team Vladimir's Avatar
    Join Date
    Mar 2008
    Location
    Russia
    Posts
    15,324

    RE: Treepanel - Set Selected Node

    Hi,

    Code:
    tree.getNodeById(id).select();
    Vladimir Shcheglov
    Ext.NET, Inc.
    Development Team

    Ext.NET Examples | Ext.NET API Docs | ExtJS API Docs | Twitter | Jobs

  3. #3
    Member
    Join Date
    Dec 2008
    Location
    Posts
    745

    RE: Treepanel - Set Selected Node

    I am trying to set it by the value of a hidden field - is that possible?
    Code:
    
    
    this.BuildTree(TreePanel1.Root);
    
    
    this.ScriptManager1.AddScript(hdnContract.ClientID + ".setValue(parent.ComboBox1.getValue());");
    
    
    TreePanel1.AddScript("{0}.getNodeById('{1}').select();", TreePanel1.ClientID, hdnContract.ClientID+ ".getValue();");

Similar Threads

  1. [CLOSED] TreePanel scrollbar does not scroll to selected node
    By PoloTheMonk in forum 1.x Premium Help
    Replies: 13
    Last Post: Feb 09, 2012, 11:30 AM
  2. Replies: 2
    Last Post: Oct 10, 2011, 1:29 AM
  3. Selected Node Id of a TreePanel
    By Z in forum 1.x Help
    Replies: 1
    Last Post: Jul 21, 2010, 8:26 AM
  4. Replies: 12
    Last Post: Jun 23, 2010, 9:19 AM
  5. [CLOSED] TreePanel selected node
    By alainfo in forum 1.x Premium Help
    Replies: 1
    Last Post: Sep 24, 2009, 6:47 AM

Posting Permissions