Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Sep 10, 2008 02:47
open dhtmlx forum
Could I get an array of all the ids of rows after a I filter the grid

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?
Answer posted by Support on Sep 10, 2008 03:18
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++)
   ids.push(grid.getRowId(i));