-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] Issues with Row Grouping: Auto-Collapse on Update and Checkbox Selection #13962
Comments
Hey @artzlite We know about this and are aware that this impacts some implementations.
@cherniavskii is there already someone working on this? |
Hey my company also uses this group / tree data selection implementation all over their applications. I ran into this as well and see this is most likely getting worked on so I will hold off on the data grid release for a little bit, rather than hack around it. I noticed on top of this collapse issue, when I select a tree data parent with checkbox selection that the children don't get selected. Is this something I should be handling utilizing some custom function reading the hierarchy property, or is this child selection of nested rows something that we would see on the apiRef automatically in the future? FYI: Love Mui X so far and Im trying to move our entire company off of AG Grid and on to Mui X so once this stuff is ironed out I will be able to secure many more premium licenses! Thank you for being quick to tackle this! |
@kevinshare we are working on this atm: #13757 💪🏼 |
@MBilalShafi does #13757 also includes the introduction of internal state for group expansion? |
@artzlite The behavior you are experiencing is more or less the "expected" behavior. The Here's the updated codesandbox example on top of your code, where I tried and it seems to keep the expansion state now: https://codesandbox.io/p/sandbox/inspiring-cannon-lqww4z You can read some more context about this API design choice in this comment. Does that make sense to you?
@michelengelen It does not. Continuing on my answer to the above question, I think that's something we do not intend right now. Obviously, we can discuss this and eventually decide on doing it, but currently, the expectation is to use the API method |
Regarding the checkbox selection issue (not propagating to children), the solution mentioned in the below issue helped resolve mine, and the checkboxes worked well. #4248 Hope this helps you as well! |
The issue has been inactive for 7 days and has been automatically closed. |
The problem in depth
I am experiencing two issues with the row grouping feature in MUI DataGrid Premium. Below are the details:
Steps to Reproduce:
https://codesandbox.io/s/react-data-grid-row-grouping-sxnwpd?file=/demo.tsx
Not sure it's a bug or not because I found some links
#8823
#8580
Your environment
`npx @mui/envinfo`
Search keywords: Row group collapses when row data is updated
Order ID: 93539
The text was updated successfully, but these errors were encountered: