Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ashwini on Aug 31, 2008 22:35
open dhtmlx forum
to get visible rows ids

Hi
i have few rows that are hidden in my grid.Is there a method that returns me only the rowids that are visible?
Thanks
Answer posted by Support on Sep 01, 2008 01:55
If you had used setRowHidden - such rows can't be detected through API, next code can be used, but it is not very fast

var ids = [];
mygrid.forEachRow(function(id){
    if (mygrid.getRowById(id).style.display!='none') ids.push(id)
})