public ActionResult Details()
{
XElement xml =
new XElement("persoanldetails", from i in dbContext.Personaldetails
where i.ID == 1 select i);
return View(xml);
}
I have created an XElement in the controller. It converts my data in the database to xml. Now I want to use this xml object to load the grid in dhtmlx.
How can I retrieve the xml object in the view?