-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Same column in different column groups #12089
Comments
Hey @MiraHariri ... what component are you referring to? And could you please provide a minimal live example? That would help us a lot in understanding your problem! Thanks! 🙇🏼 |
@michelengelen I'm referring to
I have the field `cost_2023' is duplicated in the 2 groups This returned an error that a field can't be in multiple groups Is there a way to achieve this? or a workaround? |
Hi @MiraHariri ... as the docs state:
So, this is not possible and I am not aware of any workarounds for this. The only thing that you could do is probably duplicate that column, but from the structure of your data I would guess this can get out of hand if you scale this up, right? |
Okay, yes I had this option to duplicate data with different column names in mind, and it is doable. But thought if there is a way from the table would be better Thank you @michelengelen |
Yeah ... it would have been better. If we can help you with anything else please feel free to open up a new issue! Thanks! 🙇🏼 |
How did we do @MiraHariri? |
Hi @MiraHariri ... well, we can definitely improve on this. On the other hand a built-in solution should be preferred. I will try to improve the workaround, but also add this to the board for the team to build a more profound solution. 💪🏼 |
Sry, this is the wrong issue ... the original issue was #12222 ... closing this again |
The problem in depth
I have data:
I want to create groups:
where the field "cost_2023" exists in both groups
How is this doable?
Your environment
`npx @mui/envinfo`
Search keywords: Duplicate column group
Order ID: 78698
The text was updated successfully, but these errors were encountered: