Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Scott Bailey on Aug 08, 2008 05:33
open dhtmlx forum
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
Answer posted by Support on Aug 08, 2008 07:39

You can itterate through rows by index

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

Answer posted on Aug 08, 2008 08:01

Many thanks

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

Scott