The Ext.NET team is thrilled to announce the official release of Ext.NET 4, including the new Spreadsheet Selection Model, Triton Theme and Advanced Color Picker!

Treepanel - Set Selected Node

  1. #1

    Treepanel - Set Selected Node

    How do I set - after tree build - the selected node
  2. #2

    RE: Treepanel - Set Selected Node

    Hi,

    tree.getNodeById(id).select();
    Vladimir Shcheglov
    Sr. Developer
  3. #3

    RE: Treepanel - Set Selected Node

    I am trying to set it by the value of a hidden field - is that possible?
    
    
    
    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

Subscribe now to get the latest Ext.NET happenings in our newsletter.