Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
I converted the linq data into json.now i want to load this json object into my dhtmlx grid.how can i load this data into the grid?
Posted

 
Share this answer
 
Comments
charan1431 18-May-12 3:47am    
i have seen that link,but my requirement is to load the grid with linq object.and i don't want to use static data.i have to load the grid from the database.and i dont want to use for/foreach loop to load the values in the grid.
public ActionResult Details()
{

JObject rss = new JObject(
new JProperty("personal Details",
new JArray(from i in dbContext.Personaldetails
where i.ID > 1
select new JObject(
new JProperty("ID", i.ID)))));
return View(rss.ToString());
}
this is what i wrote in the controller.and i want to use this "rss" in the view to load the grid.i tried with parse method but it is not working
 
Share this answer
 
Comments
charan1431 18-May-12 3:51am    
in that link only parse method used to load the grid with specific object.I already used this.but i am not getting.
charan1431 18-May-12 3:58am    
any suggestions..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900