Using headerCheckbox in AGGrids

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Using headerCheckbox in AGGrids

Postby wvitpr » Tue May 21, 2024 5:10 am

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?
Regards,
Phillip Routley

Worldview IT
Sydney, Australia
User avatar
wvitpr
 
Posts: 220
Joined: Tue Apr 24, 2007 1:38 am

Re: Using headerCheckbox in AGGrids

Postby Gabi Boros » Tue May 21, 2024 10:59 am

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;
Gabi Boros
Servoy
Gabi Boros
 
Posts: 407
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 5 guests

cron