Determining whether a row is visible

If a user selects a row in a grid, and then changes a filter so that the row is no longer visible, is there a method to determine whether the row is visible or not?

I know that the row is still selected, yet it is not visible because it has been filtered out.

So is there a method to tell if a selected row is visible, or is there a method to tell that a given rowID has been “filtered out”?

Thanks.

You can use

var index = grid.getRowIndex(id);

if id is filtered out - method will return -1