I've noticed a small bug with jqgrid that if you have virtual scrolling set to 1 and try and try to select all rows it doesn't actually select them all meaning when you call
$("#file-grid").jqGrid('getGridParam','selarrrow');
to get all selected row data it doesn't actually get all the data. I was wondering if there was a method to get all row ids, selected or not using jqgrid.
Use the following if you're not using pagination:
var allRowsOnCurrentPage = $('#file-grid').jqGrid('getDataIDs');
could you try getRowData() with no parameters - it should return all of the rows in the grid:
var allRowsInGrid = $('#file-grid').jqGrid('getRowData');
I got this from the jqGrid wiki:
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With