React-table: Add the ability to have grouped rows expanded by default

Created on 3 Sep 2019  路  4Comments  路  Source: tannerlinsley/react-table

Feature Request

Most helpful comment

Hey @tannerlinsley,

Thank you for the great work, and sorry for commenting on a closed issue.

Setting expanded: true works but it comes with the cost that the row can't be collapsed anymore. Do you know of a solution to allow the rows to be collapsed?

All 4 comments

We also wanted to use a grouped table but without the expand/collapse behaviour of subrows. Instead we just want to display all subrows always without any UI to toggle the expanded state.

Perhaps there's an easy solution to this but I couldn't figure out how to do it.

I'm working up an idea to support an expanded: true state that will expand everything all the time. Stay tuned.

My suggestion at this point would be to place the expanded: true property on every row in your data set. This will force every row to be expanded.

Hey @tannerlinsley,

Thank you for the great work, and sorry for commenting on a closed issue.

Setting expanded: true works but it comes with the cost that the row can't be collapsed anymore. Do you know of a solution to allow the rows to be collapsed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ggascoigne picture ggascoigne  路  18Comments

golan4ik picture golan4ik  路  18Comments

vaidsu picture vaidsu  路  29Comments

visarts picture visarts  路  36Comments

prathmeshphuke picture prathmeshphuke  路  33Comments