ASP TreeView to RadTreeView

3 posts, 1 answers
  1. William
    William  avatar
    72 posts
    Member since:
    Jun 2011

    Posted 20 Jun 2011 Link to this post

    I'm converting my existing ASP TreeView to a RadTree view. I'm getting hung up on the child node syntax. 

    This is what I currently have for my ASP TreeView:

    t1.FindNode(rs.GetString(4).ToString().ToLower()).ChildNodes.Add(node);
    t1.FindNode(rs.GetString(4).ToString().ToLower()).Collapse();


    I'm not sure what the equivalent would be for RadTreeView.


    Thanks.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Jun 2011 Link to this post

    Hello William,

    You can use the methods FindNodeByText(), FindNodeByValue() and FindNodeByAttribute() to find a Node.

    Check out the following help article for more on this.
    Finding Nodes at Runtime.

    Thanks,
    Shinu.
  3. William
    William  avatar
    72 posts
    Member since:
    Jun 2011

    Posted 21 Jun 2011 Link to this post

    Thank you for your help! Below is a copy of the converted code I came up with, in case anyone else has a similar question:

    (t1.FindNodeByValue(rs.GetString(4).ToString().ToLower())).Nodes.Add(node);
Back to Top