Parsing data from a Treeview

2 posts, 0 answers
  1. Harsha Hegde
    Harsha Hegde avatar
    4 posts
    Member since:
    Jul 2009

    Posted 03 Sep 2010 Link to this post

    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
        <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.

  2. Nikolay Tsenkov
    Nikolay Tsenkov avatar
    734 posts

    Posted 08 Sep 2010 Link to this post

    Hi Harsha Hegde,

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

    Here is nice article about loading the tree from Xml:

    Here is the demo page about this functionality:

    Hope this solves your problem!

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