Could I get an array of all the ids of rows after a I filter

In my grid a have a filter cell. After i enter something in the filter, the grid will contain only those rows that match the filter criterion.

Is there a way to get the ids of rows after filtration?

You can itterate through all rows by their indexes and collect IDs, in case of filtered set, itterating by row index fill include only filtered rows

var ids=[];
for (var i=0; i<grid.getRowsNum(); i++)