Jqgrid search option hides the grid table

Posted by Felix Guerrero on Stack Overflow See other posts from Stack Overflow or by Felix Guerrero
Published on 2010-06-10T19:21:53Z Indexed on 2010/06/10 19:33 UTC
Read the original article Hit count: 306

Filed under:
|

The issue is when I click on search option (on pager) it shows the search window but the grid gets hide. I'm including the jqmodal.js file. But what I'm ignoring on the code below?

css files:

jqModal.css

jquery-ui-1.8.custom.css

ui.jqgrid.css

ui.multiselect.css

jquery.searchFilter.css

js files:

jquery.min.js

grid.base.js

grid.common.js

grid.formedit.js

grid.setcolumns.js

ui.multiselect.js

jquery.searchFilter.js

jqModal.js

The 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>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jqgrid