sorry Punkerr not getting i check code
i want code for local paging or client pagin
my current code is
$('#searchResultGrid').datagrid({
title: 'Deviation Search Result',
iconCls: 'icon-save',
width: width1,
height: height1,
nowrap: true,
autoRowHeight: false,
striped: true,
collapsible: true,
sortName: 'ID',
sortOrder: 'desc',
remoteSort: false,
idField: 'Id',
frozenColumns: [[
{ field: 'Id', checkbox: true },
{ title: 'ID', field: 'ID', width: 80, sortable: true }
]],
columns: [[{ field: 'DeviationId', title: 'DeviationId', width: 180, align: 'Left', formatter: function(value) {
return '<span style="font-weight:normal;">' + value + '</span>';
}
},
{ field: 'TestNumber', title: 'TestNumber', width: 180, align: 'Left', formatter: function(value) {
return '<span style="font-weight:normal;">' + value + '</span>';
}
},
{ field: 'Activity', title: 'Activity', width: 60, align: 'Left', formatter: function(value) {
return '<span style="font-weight:normal;">' + value + '</span>';
}
}
]],
pagination: true,
loader: function(param, success, error) {
setDeviationSearchDataSearchData();
loadDeviationSearchData();
}
});
search result is 48 rows all 48 rows are coming on the 1st page and pagesize is 10 if i move on 2nd page it still showing 48 rows with page number 2