Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gayathri on Dec 21, 2009 03:07
open dhtmlx forum
To select all check box

Is there a provision to select all in check box column?

Gayathri.

Answer posted by Alex (support) on Dec 21, 2009 03:13

to select a checkbox in grid means to set 1 value in a cell. So, you can use the common approach for setting values in a column:

grid.forEachRow(function(rowId){

grid.cells(rowId,columnIndex).setValue(1);

})

Where columnIndex is index of the "ch" column.