ниже мой код jqgrid
$(function() {
jQuery("#jsonmap").jqGrid({
url: 'Handler.ashx',
datatype: "json",
colNames: ['Inv No', 'Name','Email'],
colModel: [{ name: 'id', index: 'id', width: 100},
{ name: 'name', index: 'name', width: 200 },
{ name: 'email', index: 'email', width: 200}],
rowNum: 10, rowList: [10, 20, 30],
pager: '#pjmap',
sortname: 'id',
viewrecords: true, sortorder: "desc",
jsonReader: { repeatitems: false, id: "0" },
caption: "JSON Mapping", height: '100%'
});
jQuery("#jsonmap").jqGrid('navGrid', '#pjmap', { edit: false, add: false, del: false,search:false });
});
{"page": 1,"total": 2,"records": 15,"rows": [{"id": 1, "name":"giri", "email":"giri"}, {"id": 2, "name":"ravi", "email":"giri"},{"id": 3, "name":"kumar", "email":"giri"}, {"id": 4, "name":"raju", "email":"giri"}, {"id": 5, "name":"madhu", "email":"giri"},{"id": 6, "name":"vivek", "email":"giri"}, {"id": 7, "name":"radha", "email":"giri"}, {"id": 8, "name":"krishna", "email":"giri"}, {"id": 9, "name":"raghu", "email":"giri"}, {"id": 10, "name":"bhaskar", "email":"giri"}, {"id": 11, "name":"bhaskar", "email":"giri"}, {"id": 12, "name":"bhaskar", "email":"giri"}, {"id": 13, "name":"bhaskar", "email":"giri"}, {"id": 14, "name":"bhaskar", "email":"giri"}, {"id": 15, "name":"subbu", "email":"giri"}]}
пейджинг не работает. Может кто-нибудь сказать мне, в чем ошибка?
Спасибо ...