to get visible rows ids

Hi

i have few rows that are hidden in my grid.Is there a method that returns me only the rowids that are visible?

Thanks

If you had used setRowHidden - such rows can’t be detected through API, next code can be used, but it is not very fast

var ids = [];
mygrid.forEachRow(function(id){
if (mygrid.getRowById(id).style.display!=‘none’) ids.push(id)
})