0
我工作的一个项目,我需要有3个选择dropdopwns种过这样 search Select DropdownsjqGrid的内嵌多个搜索选择下拉
下面是我的代码
$(document).ready(function() {
var MgroupFilter = ":[All];Starter:Starter;Controller:Controller;Finisher:Finisher";
var NgroupFilter = ":[All];Beginner:Beginner;Expert:Expert;Intermediate:Intermediate"
var GgroupFilter = ":[All];Mover:Mover;Watcher:Watcher;Sleeper:Sleeper"
$("#jqGrid").jqGrid({
url: 'getList.php',
mtype: "POST",
datatype: "json",
page: 1,
colModel: [
{ label :"ID",name: 'ID',key: true, width: 75},
{ label: "mgroup",name: 'M Group',width: 120, stype: 'select',searchoptions: { value: mgroupFilter}},
{ label: "ngroup",name: 'N Group',width: 120, stype: 'select',searchoptions: { value: NgroupFilter}},
{ label: "ggroup",name: 'G Group',width: 120, stype: 'select',searchoptions: { value: GgroupFilter }},
],
loadonce: true,
viewrecords: true,
width: 100,
height: 500,
rowNum: 10,
rownumbers: true,
rownumWidth: 40,
pager: "#jqGridPager"
});
// activate the toolbar searching
$('#jqGrid').jqGrid('filterToolbar',{multipleSearch:true});
$('#jqGrid').jqGrid('navGrid',"#jqGridPager", {
search: false, // show search button on the toolbar
add: false,
edit: false,
del: false,
refresh: true
});
});
</script>
现在如果我只有一个选择下拉列表中的过滤器区域,它会工作,只要我添加另一个我所选择的任何将导致一个空白列表。有什么我在这里失踪。
感谢