[data grid] Show/Hide All Columns, if all columns are hidden, unable to restore visibility. #13583
Closed
1 task done
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
feature: Column visibility
support: pro standard
Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Search keywords
Datagrid, DataGrid Pro
Latest version
Steps to reproduce
Link to live example:
https://mui.com/x/react-data-grid/demo/
Note, no columns are visible, and so there is no way to access the columns menu to restore visibility.
A refresh is required to restore, however for us who export the DataGridPro state to save/restore using local storage, there is no user friendly way to restore the columns.
Current behavior
All columns are hidden.
Expected behavior
The column visibility menu should not allow hiding all columns, and enforce the visibility of at least one column at all times, so that the column visibility menu may be accessed.
Context
The user should not be left in a state where they cannot access this menu.
Your environment
Chrome 126.0.6478.62 (Official Build) (64-bit) (cohort: Stable)
Order ID or Support key 💳 (optional)
85404
The text was updated successfully, but these errors were encountered: