[data grid] Cannot reorder pinned columns by drag and drop #16523
Labels
component: data grid
This is the name of the generic UI component, not the React module!
feature: Column pinning
Related to the data grid Column pinning feature
feature: Reordering
Related to the data grid Reordering feature
new feature
New feature or request
priority: low
To delay as much as possible
Summary
Hi, I noticed that drag and dropping to reorder pinned columns is not possible. Note I am just talking about reordering between multiple pinned columns.
To recreate:
Using Data Grid: pin more than 1 columns, then try to drag and drop to reorder the columns.
The only workaround right now is to unpin the columns, then re-pin them in the desired order.
Examples
https://mui.com/x/react-data-grid/column-pinning/#initializing-the-pinned-columns, using this example if we pin multiple columns and try to drag and drop it will not work.
In the documentation it specifically calls out that pinned columns cannot be reordered: https://github.com/mui/mui-x/blob/master/docs/data/data-grid/column-pinning/column-pinning.md
"Data Grid - Column pinning
Pin columns to keep them visible at all time.
Pinned (or frozen, locked, or sticky) columns are columns that are visible at all time while the user scrolls the Data Grid horizontally. They can be pinned either to the left or right side and cannot be reordered."
Motivation
Our users noticed that it was strange that they could not reorder the pinned columns.
Search keywords: Pinned Data Grid Drag and Drop Reorder
The text was updated successfully, but these errors were encountered: