Collapsible Header Group disappears when all children columns are hidden #15012
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
feature: Column groups
Related to the data grid Column groups feature
status: waiting for author
Issue with insufficient information
Steps to reproduce
Link to live example: (required): https://codesandbox.io/p/sandbox/mui-datagrid-collapsible-group-header-disappears-fhz639
Steps:
Repro video:
https://github.com/user-attachments/assets/70fbd1b3-7266-4a5e-9bad-aa3e48d981a7
Current behavior
When a collapsible header group hides all of it's children columns the header group is hidden as well as the children columns. See repro steps and video for more detail.
Expected behavior
When a collapsible header group hides all of it's children columns the header group should remain visible so the column can be expanded to show the child columns.
Expected behavior video:
https://github.com/user-attachments/assets/c02c5de2-eb0a-4013-81ae-d4d0f509b68c
Context
I am building a report which has repeating columns with children columns. This report is getting wide and we want to collapse column groups to save space and focus on particular header groups. Similar to the image below except we have several more sets of columns in header groups.
We'd like to control the collapse/expand from a control in the header group and show just the icon when the group is collapsed so we save the width of the text and would have a narrow column through the report.
Your environment
npx @mui/envinfo
Search keywords: data grid
The text was updated successfully, but these errors were encountered: