Getting filtered rows IDs

How to get IDs (or indexes) of only rows after filter was applied (similar to getSelectedRowId())
I believe it is possible (as printView does it).
Thank you.

Please, try to use the forEachRowA iterator:

myGrid.forEachRowA(function(id) { console.log(id) });