Stacked columns / Grouped columns in Tables

Hello, we would like to group some columns in the table component.
For example to have a table with two tier headers like this:

image

Do you think it's a feature that could be added to Retool tables ?

Existing solutions online:

The native retool table doesn't support merged column headers (yet). You can achieve this tho by creating a custom component and passing the data in the model.

Create a transformer that creates an array of the numbers as you need them, assuming something like:

{
  name: "Teddy Bears",
  produced_mars: 50000,
  sold_mars: 30000,
  produced_venus: 100000,
  sold_venus: 80000
}

Pass that into the model data of the custom component and iterate over each product in the HTML of the table.

Thanks for the quick answer !

Unfortunately, we are using multiple features of Retool tables like editable columns, so using a custom component would be too tedious to implement :disappointed_relieved:

1 Like

Hey there, @aturiot! Thank you for writing in and requesting that the option for grouped columns be implemented into Retool's platform. I went ahead and put in a feature request for this.

I'll message you back here when it's implemented! :+1:

Best,

Jay

2 Likes

Thank you very much !

Hi Jay, Any updates on this?

Hey @achin.lalit - thanks for following up here!

It looks like this feature has not yet started being worked on as it is waiting for review from our product team. Thus, there is no date for when eng will begin working on this, but I will be sure to update here once the status changes.

Best,

Jay

I vote for this feature too.

Hi Jay, Any updates on this feature ?