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

Parsing data from a Treeview

1 Answer 64 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Harsha Hegde
Top achievements
Rank 1
Harsha Hegde asked on 03 Sep 2010, 07:09 AM
We have a requirement , where we need to parse data from a 3 level treeview heirarchy based on the selected nodes (at any level)
For example,
We need the XML like
<LevelA>
    <Level A-1>
        <Level A-1-1> </Level A-1-1>
        <Level A-1-2></Level A-1-2>
    </Level A-1>
   <Level A-2>
        <Level A-2-1> </Level A-2-1>
        <Level A-2-2></Level A-2-2>
    </Level A-2>
 </Level A>

Here the XML should be created based on the selected nodes (checkbox in treeview). It is not the case that the user will select levelA and then go for the nested levels. The user can select data at any levels.

Let me know how can I form an XML representation in this case.




1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 08 Sep 2010, 08:38 AM
Hi Harsha Hegde,

You can use the GetXml-LoadXml methods of the RadTreeView.

Here is nice article about loading the tree from Xml: http://www.telerik.com/help/aspnet-ajax/tree_databindingxmlload.html

Here is the demo page about this functionality: http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/xmlfile/defaultcs.aspx

Hope this solves your problem!


Regards,
Nikolay Tsenkov
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
Harsha Hegde
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or