[DataGrid] Add option to persist column width
Resolves #14452
Approach: Using the computedWidth value from the previous state reference at column width hydration.
A similar approach could technically be applied for column reordering by computing the order of columnsState.orderedFields based on the previous state reference.
https://deploy-preview-14560--material-ui-x.netlify.app/x/react-data-grid/column-dimensions/#persisting-column-width
TODOs
- [x] Test corner cases
- [x] Resolve failing tests
Deploy preview: https://deploy-preview-14560--material-ui-x.netlify.app/
Updated pages:
Generated by :no_entry_sign: dangerJS against 3afe7b40cf473843a2fff9616d8aa7d2699d2bc0
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.