I'm building a grid based of data submitted from a form. The grid gets created as expected and everything looks right. However, when clicking the next page button or manually typing in a page number the data is submitted but it's missing the page, rows, sidx and sord parameters.
I am setting postData to what's in my form and that appears to be overwriting the default values sent by jqGrid. How can include the default values as well as my form data?
Here is how I am initializing my grid:
$(“#report_table”).jqGrid({
url:'ajax-get_report_data.php',
datatype: 'json',
mtype: 'POST',
colNames: data.header,
colModel: data.col_model,
pager: '#pager',
toppager: true,
rowNum:100,
rowList:[25,50,100,200,500],
sortname: data.default_sort,
sortorder: 'asc',
viewrecords: true,
height: 'auto',
width: data.width,
shrinkToFit: false,
loadui: 'block',
postData: $(“#report_form”).serialize()
});
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top