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

Problem in binding xml to rad tree view

1 Answer 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 09 Jul 2010, 06:41 AM

Greetings,

                  I am facing a problem in binding xml string to rad tree view by using loadxml method. Below is the xml string and i want to bind the data. My tree view is have check boxes and the xml string having checked status. Based on the status check boxes in the tree view should be checked.

 

'<Modules><Module Name="User Management" Id="UserManagement" checked="false"><SubModules><SubModule Name="Role Management" Id="RoleManagement" checked="false"><Pages><Page Name="Create Role" Id="CreateRole" checked="false"><Fields /></Page></Pages></SubModule></SubModules></Module><Module Name="Fleet Management" Id="FleetManagement" checked="false"><SubModules><SubModule Name="Fleet Tracking" Id="FleetTracking" checked="false"><Pages><Page Name="Check In Out" Id="CheckInOut" checked="false"><Fields /></Page><Page Name="Search Fleet" Id="SearchFleet" checked="false"><Fields /></Page></Pages></SubModule></SubModules></Module><Module Name="Customer Admini" Id="CustomerAdmini" checked="false"><SubModules><SubModule Name="Create Master" Id="CreateMaster" checked="false"><Pages><Page Name="aspx" Id="aspx" checked="false"><Fields><Field Name="Text" Id="Text" checked="false" /></Fields></Page></Pages></SubModule></SubModules></Module></Modules>'


                  Please reply me asap as i it is critical for me now.

Thanks,
Raj

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 13 Jul 2010, 12:51 PM
Hello Raj,

Well, your xml is not compliant with the one that RadTreeView would expect on LoadXml.
You need to adjust the XML, so the control can parse and bind-to it.
Here is an article about binding RadTreeView to XML source: http://www.telerik.com/help/aspnet-ajax/tree_databindingxmlload.html

Hope this is going to help you!


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