RadTreeView for ASP.NET

URL Navigation Send comments on this topic.
See Also
Telerik RadTreeView Server-Side > URL Navigation

Glossary Item Box

Telerik RadTreeView allows three types of Node actions:

URL Navigation

If you want a particular Node to navigate to a given URL location, you need to set its NavigateUrl attribute.

This code sets the tree node myNode to be a link to URL location "auctions.aspx?id=4".

//code
RadTreeNode myNode= new RadTreeNode ();
myNode.NavigateUrl = "auctions.aspx?id=4";

This XML code has the same effect as the one above. It sets the tree node "MyLabel" to be a link to the same URL location "auctions.aspx?id=4"

// xml
<Node Text= "MyLabel" NavigateUrl= "auctions.aspx?id=4" />

URL Navigation (frames)

Telerik RadTreeView also fully supports frames. You can set URL Navigation for a specified frame by using the Target attribute (supports "_blank" for opening in a new window):

C# Copy Code
// code
RadTreeNode myNode = new RadTreeNode ();
myNode.NavigateUrl =
"auctions.aspx?id=4";
myNode.Target =
"contentFrame";
                        
XML Copy Code
// xml
<Node Text="MyLabel" NavigateUrl= "auctions.aspx?id=4" Target="contentFrame" />
                        
Note: For URL links outside your site you must provide full URL, i.e. NavigateUrl=http://www.yahoo.com

 

See Also