PDA

View Full Version : How to add "SelectAll" feature to ColumnHeader "Resubmit" to select all CheckBoxes?



preetesh
9 Oct 2011, 5:48 AM
I am displaying data from Database. Every record contain CheckBox. The name of the Column Header of CheckBox is "Resubmit".
CheckColumnConfig checkColumn = new CheckColumnConfig("reSubmit", "Resubmit", 75);

I don't want to use CheckBoxSelectionModel because it shows Checkbox as a ColumnHeader instead of FieldName "Resubmit".

How to add "SelectAll" feature to ColumnHeader "Resubmit" to select all CheckBoxes?


Thanks in Advance !!!

sven
9 Oct 2011, 5:53 AM
You could listen to the HeaderClick event that gets fired by the grid. If the column index is the one of your CheckColumnConfig, you could mark them all as checked.

Take a look at the CheckBoxSelectionModel how to listen to the HeaderClick event.