:: Forum >>

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(col, checked) {
for(i=0;i < myData.length;i++) {
awGrid.setCellValue(checked, col,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(0, true)

Geno
Tuesday, March 7, 2006

This topic is archived.


Back to support forum

Forum search