Maybe this information is out there and my Google-fu is failing me, however I can't seem to find the answer. How can I get the number of rows being currently displayed in a jqGrid?
Every question and answer I've found on this topic tells you how to get either the total number of rows (displayed or not) or the number of rows loaded by an external service. Instead, I'm trying to get how many rows are being displayed in the current page of the jqGrid. One of my jqGrid attributes is
Tested on the latest jqGrid (4.4.1)
Of course, if you have more than jqGrid per page, you can use an wrapper to ensure that it is the one you're looking for.
Not sure whether it's the best way, but it gets the job done.
The space means a descendant selector, that is it looks for elements containing the class
ui-pg-selbox which are descendant of an wrapper
#myjqGridWrapper. That would require having a
div or some other wrapper around your table.
UPDATE: Also, if you have the
table ID or a reference, you can use a more sturdy way of querying its jqGrid instance's