EXT.NET v3.0 BETA RELEASED!
Now with Tablet Support!
Ext.NET v3.0 Beta is here with lots of new cool features and now with tablet support! Check Examples Explorer now to see it in action or download and test it yourself for free!
Results 1 to 3 of 3

Thread: Treepanel - Set Selected Node

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

    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,377

    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
    748

    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, 12:30 PM
  2. Replies: 2
    Last Post: Oct 10, 2011, 2:29 AM
  3. Selected Node Id of a TreePanel
    By Z in forum 1.x Help
    Replies: 1
    Last Post: Jul 21, 2010, 9:26 AM
  4. Replies: 12
    Last Post: Jun 23, 2010, 10:19 AM
  5. [CLOSED] TreePanel selected node
    By alainfo in forum 1.x Premium Help
    Replies: 1
    Last Post: Sep 24, 2009, 7:47 AM

Posting Permissions