問題是當我點擊搜索選項(在頁面上)它顯示搜索窗口,但網格被隱藏。我包含jqmodal.js文件。但是我忽略了下面的代碼呢?Jqgrid搜索選項隱藏網格表
css文件:
jqModal.css
的jQuery-UI-1.8.custom.css
ui.jqgrid.css
ui.multiselect.css
jquery.searchFilter.css
個js文件:
jquery.min.js
grid.base.js
grid.common.js
grid.formedit.js
grid.setcolumns。 js
ui.multiselect.js
jquery.searchFilter.js
jqModal.js
的JavaScript:
$("#list").jqGrid({
url: 'foo_report.php?g=' + $('#fooselect').val() +
'&report=1&searchString=null&searchField=null&searchOper=null',
datatype: 'json',
mtype: 'GET',
colNames:['foo1','foo2', 'foo3'],
colModel:[
{ name:'rows.foobar1', index: 'foobar1', search:true,
jsonmap: 'foobar1', width: 150, align: 'left', sortable:true},
{ name:'rows.foobar2', index: 'foobar2',
jsonmap: 'foobar2', width: 150, align: 'left'},
{ name:'rows.foobar3', index: 'foobar3',
jsonmap: 'foobar3', width: 240, align: 'left', sortable: true}],
pager: '#pager',
rowNum: 8,
autowidth: true,
rowList: [8, 16],
sortname: 'foobar1',
sortorder: 'asc',
viewrecords: true,
search : { caption: "Search...", Find: "Find", Reset: "Reset",
odata : ['equal', 'not equal', 'less'],
groupOps: [ { op: "AND", text: "all" },
{ op: "OR", text: "any" }],
matchText: " match",
rulesText: " rules" },
caption: 'Foobar Data',
jsonReader : { root: "rows",
repeatitems: false },
height: 350,
width: 800
});
HTML:
<table id="list"></table>
<div id="pager"></div>