title: Pagination in jqgrid
body: <p>Good afternoon, directly I apologize for spelling and not literacy, I badly know English.
  Question in the following - I can't make browsing of pages in jqgrid, generally shall work so:</p>
  
  <pre><code>onPaging : function(pgButton)
  {
       var nextPg = $("#users").getGridParam("page");
       $("#editGrid").trigger("reloadGrid",[{page:nextPg}]);
  }
  </code></pre>
  
  <p>that seems to me that or locks a code or that that isn't enough. Prompt in what a problem?</p>
  
  <p>code:</p>
  
  <pre><code>        sortname: 'id',
          sortorder: "desc",
          height: '100%',
          gridview: true,
          viewrecords: true,
          rowNum: 100,         
          rowList: [100, 500, 1000],
          autoencode: true,
          loadonce:true, 
          pager: '#pager', 
          search:true,
          multiselect: true,
          autowidth: true, 
          onPaging : function(pgButton){
  
           var nextPg = $("#users").getGridParam("page");
           $("#editGrid").trigger("reloadGrid",[{page:nextPg}]);
          },
  </code></pre>
  
  <p>I wrote the pagination, but a code big and it would be desirable to replace it with more convenient and small code.</p>