JQuery 网格寻呼机不可见

JQuery grid pager not visible

我有一个 Jquery 网格,它是在 html table.

上形成的

我已经为网格添加了所需的属性,包括寻呼机 functionality.I 已经将我的页面大小设置为 10。

向上翻页和向下翻页按钮不可见。

仔细一看,发现是在说Page: 1 out of 1 但在右上角,它再次显示 257 条记录中的 1-10。

这是我的 html 个标签

<table class="table table-bordered" id="tblJQGrid"></table>
<div id="pager"></div>

这里是绑定网格的代码。

$("#tblJQGrid").jqGrid(
{url: "@Url.Action("GetGeographyBreakUpData", "GeoMap")"+ "?Parameters=" + Params + "",
    datatype: "json",
    //data: { "Parameters": Params },

    mtype: 'GET',
    cache: false,
    colNames: ['Id','GeoGraphy', 'Completed', 'InProgress'],
    colModel: [
    { name: 'Id', index: 'Id', width: 20, stype: 'text',hidden:true },
    { name: 'Geography', index: 'Geography', width: 150 },
    { name: 'Completed', index: 'Completed', width: 150 },
    { name: 'InProgress', index: 'InProgress', width: 150 },
    ],
    pager:'#pager',
    jsonReader: {cell:""},
    rowNum: 10,
    sortorder: "desc",
    sortname: 'Id',
    viewrecords: true,

    caption: "Survey Status:Summary",
    scrollOffset: 0});
    $("#tblJQGrid").jqGrid('navGrid','#pager',{search:true});

有什么关于我遗漏或做错的建议吗?

尝试使用 loadonce: trueforceClientSorting: true 选项。