I can't configure items per page for jqgrid. My jqgrid is:
jQuery('#EmployeeTable').jqGrid({
url: '/Admin/IdeasJSON',
datatype: 'json',
postData: { page: page, pageIndex: pageIndex, Filter: Filter, DateStart: DateStart, DateEnd: DateEnd, TagID: TagID, StatusID: StatusID, CategoryID: CategoryID, IsDescription: IsDescription },
loadComplete: function () { pageIndex = null },
jsonReader: {
page: "page",
total: "total",
records: "records",
root: "rows",
repeatitems: false,
id: ""
},
....
and MVC method returns:
var result = new JsonResult()
{
Data = new { page = page, total = total, records = totalCount, rows = IdeaForJSONs }
};
result.JsonRequestBehavior = JsonRequestBehavior.AllowGet;
return result;
where IdeaForJSONs has 50 elements. I don't know why but grid shows 20 elements. Why?