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

XML file as an input for Tree View

2 Answers 87 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Medac
Top achievements
Rank 1
Medac asked on 12 Oct 2009, 08:40 AM
Hi,

I have an XML file as Source file for Tree View control. How to load the data to tree view control. Is there any example for tree view control which accepts data as XML file?

I have visited http://demos.telerik.com/aspnet-ajax/treeview/examples/overview/defaultvb.aspx. In this I didnt get any sample for my requirement. Please help regarding the same.

Regards,
Medac

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Oct 2009, 09:11 AM
Hi Medac,

Checkout the online demo which shows populating RadTreeView via the LoadContentFile method and also by using XmlDataSource.
Populating from XML

Also checkout the documentation that shows XML file structure and how to load using LoadContentFile method: Loading XML Content

Hope this would be of help,
Shinu.
0
Medac
Top achievements
Rank 1
answered on 12 Oct 2009, 11:32 AM
Shinu,

It worked now I am facing one problem here I have to display text like this "LocationType<>". Since it contains <> symbol. It is giving error near < symbol.
Help me!!!!

Regards,
Medac
Tags
TreeView
Asked by
Medac
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Medac
Top achievements
Rank 1
Share this question
or