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

krishna-shenll picture krishna-shenll  路  3Comments

Abdul-Hameed001 picture Abdul-Hameed001  路  3Comments

panfiva picture panfiva  路  3Comments

bdkersey picture bdkersey  路  3Comments

ocalde picture ocalde  路  3Comments