简体   繁体   中英

How to select all the rows in all the pages of jqgrid?

I am able to select all the rows in a page by clicking on selectall checkbox. But I am unable to select all the rows across all the pages. Is it possible?

The answer on your question depend on many aspects of the implementation. You should specify which datatype you use (for example datatype: "local" ), which version of jqGrid you use and from which fork of jqGrid ( free jqGrid , commercial Guriddo jqGrid JS or an old jqGrid in version <=4.7).

I develop free jqGrid fork and I have implemented multiPageSelection: true option, described in the answer . See the demo . The new option allows to set the ids of the rows, which need be selected in selarrrow option of jqGrid. It allows "pre-select" the rows. Moreover it changes the behavior of "Select All" checkbox too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM