mui-x icon indicating copy to clipboard operation
mui-x copied to clipboard

[DataGrid] Add option to persist column width

Open MBilalShafi opened this issue 1 year ago • 4 comments

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

MBilalShafi avatar Sep 10 '24 11:09 MBilalShafi

Deploy preview: https://deploy-preview-14560--material-ui-x.netlify.app/

Updated pages:

Generated by :no_entry_sign: dangerJS against 3afe7b40cf473843a2fff9616d8aa7d2699d2bc0

mui-bot avatar Sep 10 '24 11:09 mui-bot

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Sep 20 '24 01:09 github-actions[bot]

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Oct 15 '24 21:10 github-actions[bot]

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Oct 17 '24 13:10 github-actions[bot]