How to show all rows in the jqGrid?

后端 未结 14 1656
心在旅途
心在旅途 2020-12-02 22:26

jqGrid exposes a property rowNum where you can set the number of rows to display for each page. How do you set the grid to just display ALL rows?

Right

14条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 22:39

    This works:

    // Step1 - defines the rows
    jqGridOptions.rowList =[10, 50, 100, 500, 'All'];
    ...
    ...
    // Step2 - Change the 'All' to a meaningful value 
    loadComplete: function (data) {
       $(".ui-pg-selbox option[value='All']").val(1000);
    }
    

提交回复
热议问题