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
Hello @Kerry Davis
This is available for a long time now.Please take a look at the example in the documentation/sample:
Cheers,GM
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
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
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
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 linecheckbox on the 2nd line