0

I am new to use slickgrid.

I want to know if anyone can help with returning actionresult or jsonresult to slickgrid. How can we do that?

hetal gala
  • 249
  • 2
  • 5
  • 18
  • I'm sure there are hundreds of examples on google like [this one](http://www.codeproject.com/Articles/365223/Using-a-SlickGrid-within-an-ASP-NET-MVC-3-Applicat). – leon.io May 28 '12 at 12:24
  • can you give some links? – hetal gala Jun 06 '12 at 04:01
  • errr.. I did - but here it is again! http://www.codeproject.com/Articles/365223/Using-a-SlickGrid-within-an-ASP-NET-MVC-3-Applicat – leon.io Jun 06 '12 at 13:50

1 Answers1

1

You should be able to return your model to the slickgrid as a JsonResult as follows:

return Json(JsonConvert.SerializeObject(YOUR_MODEL_INSTANCE));

Have a look at http://james.newtonking.com/projects/json-net.aspx

Andrew Barber
  • 39,603
  • 20
  • 94
  • 123
Rohit L
  • 1,441
  • 13
  • 12