Using headerCheckbox in AGGrids
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue May 21, 2024 5:10 am
by wvitpr
Hello,
Ive noticed there is headerCheckbox in column properties, is there some example code to show how to use this to select all rows in the foundset?
Re: Using headerCheckbox in AGGrids
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue May 21, 2024 10:59 am
by Gabi Boros
when you set is for a column, it will show a checkbox in the header, and onSelectedRowsChanged will be called whenever it is clicked, with: isgroupselection= true (it is a group selection), groupcolumnid = id_of_column, groupkey = null (because this handler is also used for selection groups, in which case it is the group name), groupselection = true/false based on the check state; you need to actually select the rows in the model when this handler is called;