:: Forum >> Version 2 >>

enable/disable all checkboxes from one checkbox in column header

There is given one data grid with a column of checkboxes. It should be possible to enable/disable all these checkboxes from one checkbox in the column header.
Any ideas?

Thanks a lot!
Andy
Tuesday, March 7, 2006
function togglecheckBoxes(colchecked) {
  for(
i=0;myData.length;i++) {
    
awGrid.setCellValue(checkedcol,i)
  }
}
 
So if your checkboxes are in the first column and you want to check all the boxes, you would use it like this:

toggleCheckBoxes(0true)
 
Geno
Tuesday, March 7, 2006



This topic is archived.

Back to support forum

Forum search