Jqgrid get all ids

I noticed a small error with jqgrid which, if you have virtual scrolling set to 1, and try to select all rows, it doesn't really select them all the value when you call

$("#file-grid").jqGrid('getGridParam','selarrrow'); 

to get all the selected row data, it doesn’t actually get all the data. I was wondering if there is a way to get all row IDs selected or not used by jqgrid.

+5
source share
2 answers

Use the following if you are not using pagination:

var allRowsOnCurrentPage = $('#file-grid').jqGrid('getDataIDs');
+9
source

You can try getRowData () without parameters - it should return all the rows in the grid:

var allRowsInGrid = $('#file-grid').jqGrid('getRowData');

I got this from jqGrid wiki:

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods

+3

All Articles