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

binding TreeView to XML and setting the navigation URL

3 Answers 76 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Vinay
Top achievements
Rank 1
Vinay asked on 20 Sep 2010, 05:24 AM
hi I have a RadTreeView which I have bound to an XML string. All works good no issues. I am now trying to add a navigation URL so that when the user clicks on a node of the treeview It will open a window based on the navigation URL. How can I do this so that I can specify the URL in XML which I pass to the Tree View.

Thanks
Vinay

3 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 20 Sep 2010, 02:51 PM
Hello Vinay,

There are two ways to accomplish this:

1. To insert a NavigateUrl to each node in the .xml file as described below:

<Node Value="14" Text="Unread Mail" NavigateUrl="http://www.telerik.com"/>

2. You can bind the RadTreeView to a XMLDataSource and subscribe to the OnDataBound event and add additional properties in the handler. Please take a look at this help topic for reference.

Hope this helps.

Kind regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vinay
Top achievements
Rank 1
answered on 21 Sep 2010, 02:11 AM
Thanks.

There is one more query. When i click on the node I want to populate a Rad Grid, with values from a webservice. Is it possible to do this without doing a complete post back. and Only refreshing the Grid area ? I am new to Ajax.
0
Veronica
Telerik team
answered on 23 Sep 2010, 03:34 PM
Hi Vinay,

You'll need to use RadAjaxManager. Please take a look at this help topic and this demo for an example.

Feel free to ask me if you have further questions.

Kind regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Vinay
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Vinay
Top achievements
Rank 1
Share this question
or