How to show all rows in the jqGrid?

后端 未结 14 1596
心在旅途
心在旅途 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

    if you dont wish to use paging at all then change you server side code to simply return all the rows. dont use the rows parameter at all.

    if you want to have the rowlist but also have an option to show all then do something like this in the grid properties

    jQuery("#statement_mods").jqGrid({
      rowList:['ALL',30,50,100,200]
    });
    

    and then in the serverside code make sure that you ignore the rows parameter if GET['rows']='ALL'

提交回复
热议问题