There is nothing in the documentation about this function.
mygrid.forEachRowA(function(id){
//custom function
});
forEachRowA is the inner method of dhtmlxGrid. It allows you to iterate in the filtered grid through the rows passed the filtration only.