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

[data grid] Need to use column grouping, leaf field, pinning and detail panel in a single grid #17009

Closed
mltuasonbmcd opened this issue Mar 17, 2025 · 5 comments
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: Master-detail Related to the data grid Master-detail feature feature: Row grouping Related to the data grid Row grouping feature support: commercial Support request from paid users

Comments

@mltuasonbmcd
Copy link

mltuasonbmcd commented Mar 17, 2025

The problem in depth

I am trying to use the premium Data Grid with grouping with a specific leaf field, pinned column, and a detail panel. I cannot determine how to combine them and get the grid to render correctly after the initial load (for example, I have the grid displayed on a tab and when I toggle to a different tab and return to the grid, the columns attempt to reorder and place them in the wrong order.

Initial Load:

Image

After toggling display using a Tab:

Image

Your environment

`npx @mui/envinfo` System: OS: Windows 10 10.0.19045 Binaries: Node: 20.9.0 - C:\Program Files\nodejs\node.EXE npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD pnpm: Not Found Browsers: Chrome: Not Found Edge: Chromium (131.0.2903.51) npmPackages: @emotion/react: ^11.14.0 => 11.14.0 @emotion/styled: ^11.14.0 => 11.14.0 @mui/core-downloads-tracker: 6.4.2 @mui/icons-material: ^6.4.2 => 6.4.2 @mui/material: ^6.4.2 => 6.4.2 @mui/private-theming: 6.4.2 @mui/styled-engine: 6.4.2 @mui/system: 6.4.2 @mui/types: 7.2.21 @mui/utils: 6.4.2 @mui/x-charts: 7.24.1 @mui/x-charts-pro: ^7.24.1 => 7.24.1 @mui/x-charts-vendor: 7.20.0 @mui/x-data-grid: 7.27.0 @mui/x-data-grid-premium: ^7.27.0 => 7.27.0 @mui/x-data-grid-pro: 7.27.0 @mui/x-internals: 7.24.1 @mui/x-license: ^7.24.1 => 7.24.1 @types/react: ^18.3.18 => 18.3.18 react: 18.3 => 18.3.1 react-dom: 18.3 => 18.3.1 typescript: ^5 => 5.7.3

Search keywords: Group Pin Panel Leaf

Order ID: 17890456

@mltuasonbmcd mltuasonbmcd added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Mar 17, 2025
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Mar 17, 2025
@oliviertassinari oliviertassinari changed the title Data Grid Premium, need to use column grouping, leaf field, pinning and detail panel in a single grid [data grid] Need to use column grouping, leaf field, pinning and detail panel in a single grid Mar 17, 2025
@michelengelen
Copy link
Member

To help us diagnose the issue efficiently, could you provide a stripped-down reproduction test case using the latest version? A live example would be fantastic! ✨

For your convenience, our documentation offers templates and guides on creating targeted examples: Support - Bug reproduction

Just a friendly reminder: clean, functional code with minimal dependencies is most helpful. Complex code can make it tougher to pinpoint the exact issue. Sometimes, simply going through the process of creating a minimal reproduction can even clarify the problem itself!

Thanks for your understanding! 🙇🏼

@michelengelen michelengelen added status: waiting for author Issue with insufficient information feature: Row grouping Related to the data grid Row grouping feature feature: Column pinning Related to the data grid Column pinning feature feature: Master-detail Related to the data grid Master-detail feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 18, 2025
@mltuasonbmcd
Copy link
Author

Sure thing, attached a sample .tsx showing the formatting issues.

Sample.tsx.txt

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Mar 18, 2025
@michelengelen
Copy link
Member

Hey @mltuasonbmcd ... I added your example into a tab sequence and for me it does work as expected. There is no shift in columns to be seen. I tested this with v7 and v8. Could it be that you have another factor that might cause this somewhere?

Screen.Recording.2025-03-19.at.10.14.30.mov

@michelengelen michelengelen added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 19, 2025
@mltuasonbmcd
Copy link
Author

It must be something else, will continue to research. Thank you so much for the help!

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Mar 19, 2025
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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: Master-detail Related to the data grid Master-detail feature feature: Row grouping Related to the data grid Row grouping feature support: commercial Support request from paid users
Projects
None yet
Development

No branches or pull requests

2 participants