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

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

Worldview IT
Sydney, Australia
User avatar
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
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: Bing [Bot] and 3 guests