How can one get the ID\'s of every row in a grid, even across pages?
getDataIDs
and getRowData
only gives the ID\'s of the current page.
In later versions of jqGrid they came out with a function that suits this situation better as it will consider any toolbar filtering that may be in place. See Oleg's example here. Thus, if you have a jqGrid (loadonce:true and/or datatype:local) the following will return all row ids (displayed in current page and beyond) which match the current filtering.
var allIdsWithFiltering = grid.jqGrid('getGridParam', 'lastSelectedData');
This returns a plain array, unlike the original answer, which returns an object with properties that must be enumerated.