Dynamic Radtreeview - Maintain state

1 posts, 0 answers
  1. Venkat Ganesh
    Venkat Ganesh avatar
    8 posts
    Member since:
    Aug 2009

    Posted 07 Oct 2009 Link to this post

    Hi,

    I am creating RadTreeView in NewItemTemplate class of RadPanel. I have this code in an usercontrol.

    I am using Radwindow to create new nodes for the Tree ( I am calling radwindow using a button inside usercontrol). On Closing for RadWindow I want to highlight/select the node which is recently added to the tree.

    How do I achieve this?

    For example, 
     
    public void InstantiateIn(System.Web.UI.Control container) 
      RadTreeView RadTreeView1 = new RadTreeView(); 
      RadTreeView1.ID = "myTree" & myNumber 
      RadTreeView1.DataTextField = "Text"
      RadTreeView1.DataNavigateUrlField = "Url"
      RadTreeView1.DataFieldID = "ID"
      RadTreeView1.DataFieldParentID = "ParentID"
      RadTreeView1.DataSource = siteData; 
      RadTreeView1.DataBind(); 


    Thanks

Back to Top