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

Add urls to dynamically created treeview nodes

3 Answers 83 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Stavros
Top achievements
Rank 1
Stavros asked on 19 Jun 2009, 10:36 AM
I use the hierarchy method to create a treeview with nodes that are created from and underlying database.
How can I attach urls to the created nodes?
Thank you very much.

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 19 Jun 2009, 11:12 AM
Hello Stavros,

For that purpose you can use the DataNavigateUrlField property. This is the field name from the data source that populates each Node's NavigateUrlField property during binding.

Greetings,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Stavros
Top achievements
Rank 1
answered on 19 Jun 2009, 01:53 PM
Can I connect these nodes with gridtables?
I have placed the treeview at the master page and the radGrid is placed in the content page.
0
Shinu
Top achievements
Rank 2
answered on 19 Jun 2009, 02:16 PM
Hi Stavros,

I am not sure about your requirement but i suppose that you want to access the selected node of the treeView in the content page. if that is the case, then you can try out the following code:
c#:
RadTreeView treeview = (RadTreeView)Master.FindControl("RadTreeView1");  
string value = treeview.SelectedNode.Value;  

Thanks
Shinu.
Tags
TreeView
Asked by
Stavros
Top achievements
Rank 1
Answers by
Paul
Telerik team
Stavros
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or