Le problème est que lorsque je clique sur l'option de recherche (sur pager), elle affiche la fenêtre de recherche mais la grille se cache. J'inclus le fichier jqmodal.js. Mais qu'est-ce que j'ignore sur le code ci-dessous?L'option de recherche Jqgrid cache la table de la grille
fichiers CSS:
jqModal.css
jquery-ui-1.8.custom.css
ui.jqgrid.css
ui.multiselect.css
jquery.searchFilter.css
fichiers js:
jquery.min.js
grid.base.js
grid.common.js
grid.formedit.js
grid.setcolumns. js
ui.multiselect.js
jquery.searchFilter.js
jqModal.js
Le 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>