How to know if a column is empty in Grid

Is there any way to know if all values of a particular column are empty in a Grid?
Any information would be helpful…

You may use the forEachRow() method:
https://docs.dhtmlx.com/api__dhtmlxgrid_foreachrow.html
to iterate through the data and check if there is a “not empty” value in the needed cell.
Something like:

myGrid.forEachRow(function(id){
   if (myGrid.cellById(id, part_col_ind).getValue()!=="")
      console.log("there is a non-empty cell")
   else
      console.log("all clear")
});
1 Like