tags:

views:

165

answers:

1

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.

A: 

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

Sean