We are stuck with the same situation. Can you help us?
I am trying to convert my sample XML file as JSON object and set that as a datasource to my tree view control. Its not working. I am sure that I am missing something here but not sure what's that. Please help me.
Here is my code in Controller class where I am loading the XML file and retruning as JSON
public JsonResult Employees()
XElement xdoc = XElement.Load("C:\\Users\\a409114\\Desktop\\TreeView.xml");
return Json(xdoc, JsonRequestBehavior.AllowGet);
Here is my code in the view file where I am invoking the action name "Employees" in my controller class "TreeViewController".
.DataSource(dataSource => dataSource
.Read(read => read
Here is my sameple XML file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
This is not loding the Tree View Control!