binding TreeView to XML and setting the navigation URL

4 posts, 1 answers
  1. Vinay
    Vinay avatar
    8 posts
    Member since:
    Jan 2010

    Posted 20 Sep 2010 Link to this post

    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
  2. Answer
    Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 20 Sep 2010 Link to this post

    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
  3. Vinay
    Vinay avatar
    8 posts
    Member since:
    Jan 2010

    Posted 20 Sep 2010 Link to this post

    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.
  4. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 23 Sep 2010 Link to this post

    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
Back to Top