var myfilter = { groupOp: "AND",rules: [] }; myfilter.rules.push({ field: "DataIssuesYN",op: "eq",data: "Y" });
然后在jqGrid设置中,我传入postData:
postData: (myfilter) ? { filters: JSON.stringify(myfilter)} : {},