I have a requirement for a CheckBox column with a checkbox placed in the header with the following functionality:
- When all rows in this column are checked, the header checkbox shows checked
- When any row in this column is unchecked, the header checkbox shows unchecked
- When the header checkbox is unchecked and clicked, all rows in that column are checked
- When the header checkbox is checked and clicked, all rows in that column are unchecked
Currently I handle this by using an image for the header checkbox and change that according to the state, but that has some drawbacks:
- The image in the header is not identical to the checkbox in the grid rows
- I can only react on the header click and not on the header image click. This contrasts to the checkbox click in the rows, where I have to click on the checkbox while a click on the rest of the cell is ignored
Perhaps I am missing something?
On the other hand I would file this as a feature request for the CheckBox column