HI,
I m migrating Utrawebtree to WebDataTree , below is the Utrawebtree code
string sFilePath = Page.MapPath(sNodeSrc);
UltraWebTree1.FileUrl = sFilePath; UltraWebTree1.DataBind();
here i m not able to fine the equivalent for FileUrl in webdatatree. can you please provide below line in webdatatree.
UltraWebTree1.FileUrl = sFilePath;
Hello Ravi,
I have attached a sample which demonstrate the WebDataTree bound to a XmlDataSource. To learn more about the WebDataTree, please review the help topics and documentation I've linked below:Documentation for WebDataTreeBinding to XML DataSourceWebDataTree Template Sample
Please let me know if you have any questions regarding this matter.
Hi Jose,
I m attaching sample XML file which we are using in my Project, we cannot change the format of this xml file. Using attached sample xml can we bind data to WebDataTree pls suggest.
Note:- Attached sample XML format
Thanks
Ravi
Hello Ravi Kumar,
Thank you for posting on our forums.
The WebDataTree doesn't have a FileUrl property included in the API. Instead, it is able to bind to a XmlDataSource object.
Here is an example:http://ko.infragistics.com/samples/aspnet/data-tree/data-binding
Also, here is the API documentation for the XmlDataSource:http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.xmldatasource(v=vs.110).aspx
I recommend setting the XPath and DataFile properties accordingly.