427
Views
5
Comments
Solved
[OutSystems Data Grid] "Check all boxes" button for a DataGrid with a checkbox column
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive
Service Studio Version
11.50.17 (Build 52793)

Hello everyone,

We've been working on a project for an outside customer, and we used DataGrid for most tables. There is a main page with a DataGrid with a checkbox column, where you can check multiple rows and go to another page to edit them. And, quite naturally, the customer wants a "check all boxes" button.

It's such a natural thing to want, but I just can't find a way to do it. The main problem is that there is no way to know how many rows are being displayed at a given time, if I just loop for the number of rows in data, it ends up going over the number of rows displayed because the grid is filtered, and throws an exception.

Apparently there is nothing in the underlying GridApi.GridManager that returns the current data displayed or current number of rows displayed either. If there is please tell me. 

Using DataGrid Reactive 2.5.1, currently the latest version.

Has anyone implemented this? Any suggestions? 

Thank you

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Kerry Davis 

This is available for a long time now.
Please take a look at the example in the documentation/sample:




Cheers,
GM

2020-08-05 09-00-16
Gabriel Lundgren

Hello Taha,


Thanks for bringing this topic into discussion. As of now, there is no way to achieve this, but we should be releasing Grid checkbox selection in the next release.


Cheers,

Gabriel Lundgren

UserImage.jpg
Kerry Davis

Has this been included at this point? I did not see an update here and have found no way of doing this with the current data grid released in December of 2022. Is there something I am missing?

Thanks,

Kerry

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Kerry Davis 

This is available for a long time now.
Please take a look at the example in the documentation/sample:




Cheers,
GM

UserImage.jpg
Kerry Davis

Thank you so much for the detailed reply. I was having a difficult time finding how it was implemented but you directed me right to the spot. I appreciate the help. 

Thanks Kerry

UserImage.jpg
Larry Tay

Hi,  coming to this post late :  I have a question:
On the header checkbox, there is no title ,  i would need a method to put the title example "Assign/Select all" on the 1st line
checkbox on the 2nd line

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.