Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataGridPro: Pinned column header (that's not in a group) covers other non-grouped column headers next to it (when there are some other column groups) #9286

Closed
2 tasks done
vladyslav-n opened this issue Jun 9, 2023 · 1 comment · Fixed by #10518
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 feature: Column pinning Related to the data grid Column pinning feature

Comments

@vladyslav-n
Copy link

vladyslav-n commented Jun 9, 2023

Order ID or Support key 💳 (optional)

66195

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example: https://codesandbox.io/s/stoic-morning-cnpmzf?file=/demo.tsx

Steps:
Pin either of the first non-group columns in DataGridPro and see how they are covering with white section other non-group header cells next to them.

It is also reproducible on the MUI docs page.

Current behaviour 😯

Screen.Recording.2023-06-09.at.15.33.40.mov

When you have some column groups but first columns on the left are actually non-group columns (at least 2 non-group columns in a row) if you pin any of the start non-group columns, their header cells expand so that they cover other non-group header cells next to them.

Expected behaviour 🤔

Pinned columns should work exactly the same way as when there are no groups or when you pin a non-group column from bet

ween groups.

Context 🔦

We're now extensively using DataGridPro with both grouping and pinning functionality, so we need to having this stuff work together in a very flexible way.

Your environment 🌎

npx @mui/envinfo
 System:
    OS: macOS 13.3.1
  Binaries:
    Node: 18.8.0 - ~/.nvm/versions/node/v18.8.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.18.0 - ~/.nvm/versions/node/v18.8.0/bin/npm
  Browsers:
    Chrome: 114.0.5735.106
    Edge: Not Found
    Firefox: Not Found
    Safari: 16.4
@vladyslav-n vladyslav-n added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 9, 2023
@vladyslav-n vladyslav-n changed the title Pinned column header (that's not in a group) covers other non-grouped column headers next to it (when there are some other column groups) DataGridPro: Pinned column header (that's not in a group) covers other non-grouped column headers next to it (when there are some other column groups) Jun 10, 2023
@MBilalShafi
Copy link
Member

Thanks for reporting, a similar issue (for right pinned columns) is already in our backlog: #7041
Both of them are interrelated and could be fixed together.

@MBilalShafi MBilalShafi added 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 and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jun 11, 2023
@github-project-automation github-project-automation bot moved this to 🆕 Needs refinement in MUI X Data Grid Jun 11, 2023
@MBilalShafi MBilalShafi moved this from 🆕 Needs refinement to 🔖 Ready in MUI X Data Grid Jun 11, 2023
@MBilalShafi MBilalShafi added bug 🐛 Something doesn't work feature: Column groups Related to the data grid Column groups feature labels Sep 29, 2023
@cherniavskii cherniavskii moved this from 🔖 Ready to ✅ Done in MUI X Data Grid Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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 feature: Column pinning Related to the data grid Column pinning feature
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants