1

出于某种原因,我的寻呼机显示在我的网格下方,但没有显示导航到下一页、上一页、第一页或最后一页的按钮。我知道显示了寻呼机,因为显示了 rowList 属性,并且我可以选择要显示的条目数。

这是 JQGrid 声明代码:

<script type="text/javascript">
    jQuery(document).ready(function(){ 
    jQuery("#Table").jqGrid({
      jsonReader: {
           root:"rows",
           page:"page",
           total:"total",
           records:"records",
           repeatitems:false,
           cell:"",
           id:"id",
           userdata:"userdata"
         },
      url:'project/selectTable/loadTableInfo.do',
      datatype:'json',
      colNames:['Name','Size','Delete'],
      colModel:[
      {name:'name',index:'name', sorttype:'text'}, 
      {name:'size',index:'size', sorttype:'int'},
      {name:'delete',index:'delete',width:20, stype:'select'}],
      pager:'#pager',
      rowNum:50,
      rowList:[10,25,50,75,100],
      viewrecords:true,
      autowidth:true,
      height:"auto",
      pgbuttons:true,
      pginput:true,
      loadComplete: function(){ 
        var ids = jQuery("#Table").getDataIDs(); 
        for(var i=0;i<ids.length;i++){ 
          var cl = ids[i]; 
          X = "<input style='height:22px;width:20px;' type='button' value='X' onclick=deleteRow("+cl+");>" 
          jQuery("#Table").setRowData(ids[i],{delete:X});
          }
      }, 
      caption:'Info'
    });
  });
</script>
<div id="gridContainer">
  <table id="Table"></table> 
  <div id="pager"></div> 
</div>
4

0 回答 0