I download Craig Stunz's demo application from his blog and run it from Visual Studio 2010. The result is the grid with its UI but no rows. What should I do to make it works?
A:
I found a similar question and it was answered in the comments of the post.
Change the code like this if you used ASP.NET MVC 2
return Json(model.ToJqGridData(page, rows, null, search, new[] { "IntProperty", "StringProperty", "DateProperty" }), JsonRequestBehavior.AllowGet); }
NOTE : HomeController.cs
So, again you need to change the code in the controller's action that return the Json object as below.
return Json(
model.ToJqGridData(
page, rows, null, search,
new[] { "IntProperty", "StringProperty", "DateProperty" }),
JsonRequestBehavior.AllowGet
);
I didn't test this. Please confirm if that helps!
Nam Gi VU
2010-09-17 00:16:46
This is exactly what we need to get his demo works!
Nam Gi VU
2010-09-17 05:10:25