Wondering if anyone has used jQgrid to post dynamic data from another form on the same page. Dynamic in that I don't know the input names to post, but would rather just post the whole serialized form when rendering the grid.
I gotten as far as setting the extra data in postData, but it doesn't get passed in the url properly, as it appears double url-encoded. See:
$(document).ready(function() {
$("#rpt").jqGrid(
{ url:'/get.json',
postData: {filter: $('form').serialize()},
datatype: "json",
gridview: true,
colModel:[id:'col1']
});
});
Through various threads here and on other sites, I've tried the suggested JSON.stringify and serializearray() on the form, as well as custom functions to no avail. The form data appears encoded and is not available on the other side via _GET.
Any suggestions would be great - thanks!