This is a migrated thread and some comments may be shown as answers.

ASP TreeView to RadTreeView

2 Answers 61 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 20 Jun 2011, 06:11 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 21 Jun 2011, 09:44 AM
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.
0
William
Top achievements
Rank 1
answered on 21 Jun 2011, 01:43 PM
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);
Tags
TreeView
Asked by
William
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
William
Top achievements
Rank 1
Share this question
or