Data table having an header checkbox

Hi everyone,

Can any on give me an example on how to create a data table with a header containing checkbox which on performing check and uncheck action, it should make all other check boxes in the table (every row of a table) to change according to the header checkbox.

Anything either with javascript or managed bean is fine.

Performing with javascript is more appreciated.

Regards,
Shashi Kumar

Simply use one of the provided controls in the header of one of your table columns.

For example, what you described is exactly what these controls do:

  • CAF Html/Control/Table/Table Row Tools/Select All Rows Checkbox
  • CAF Html/Control/Table/Table Row Tools/Select All Visible Rows Checkbox
1 Like