Is it possible to get the number of displayed rows when grouping is enabled?
$grid(‘getdisplayrows’) returns the total number of rows of data, but if I have three groups and they are all collapsed, I’m looking for a method that returns “3”.
If one of them is open and it has 3 rows of data, I’m looking for a response of “6”. The three groupings and the three rows expanded.
Essentially, if the <div role="row"> is not blank, I want to add that to the total row count.
You could use $('#jqxgrid').jqGrid('groups'); to get information about by which columns are grouped.
With getrootgroupscount method you could get all displayed groups and with getgroup method could get more detailed information about each one of them by iteration.