看看有关高级搜索的jqgrid文档,特别是随附的search_adv.php文件。
我注意到以下代码行
$searchstr = Strip($_REQUEST['filters']);
然而,当我看到我的jqgrid帖子的firebug上的输出时,我看到了
_search true
nd 1270148130165
page 1
rows 10
searchField income_types_desc
searchOper eq
searchString 5
sidx income_types_desc
sord asc
“过滤器”参数究竟在哪里?
答案 0 :(得分:1)
执行高级(filter
)搜索时会使用allowMultiple:true
参数。它最终包含一个JSON对象,看起来像这样:
filters =
{"groupOp":"AND",
"rules":[
{"field":"invdate","op":"ge","data":"2007-10-06"},
{"field":"invdate","op":"le","data":"2007-10-20"},
{"field":"name","op":"bw","data":"Client 3"}
]
}
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:advanced_searching