Get Filterered Row IDs

Hello,



How do I return the ids of the rows resulting from a filter. I have attached function to onFilterEnd. I tried forEachRow but this returns all the rows nit just the filtered rows.



Thanks

Scott


You can itterate through rows by index


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



Many thanks



I tried this but didn’t work but must have had something wrong. Works now.



Scott