How we can toggle table's Group rows

I have a table, and I'm using group rows. I want to expand the first group to be visible on the page load or a button to toggle all groups. By default, all of the groups are collapsed.

1 Like

Hey there, the functionality to toggle grouped rows based on a button click, or set the first row as expanded upon page load does not currently exist. However, I have filed a feature request. While I don't currently have a timeline on when the functionality will get added, our engineers will consider and prioritize the request. Thank you for being a valued Retool customer.

@Lynn_Wellhausen is there an update on this? Could we use the new "setGrouping API" as mentioned by @Tess over on Programically group table rows - #11 by Tess

Hello, yes the setGrouping functionality is now available as an event handler.