-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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] Select all children rows in Row-Group #12222
Comments
Hey @MiraHariri ... this is a very interesting use case and it definitely is possible with the built in methods. I created an example implementation for this: Toggle children row selection If you need further assistance please feel free to reach out! |
@michelengelen thank you, but I can't reach the link you provided |
Sry, codesandbox recently changed the way they fork and store. Here is an updated link: Sandbox |
Thank you so much for your help! Your solution did the trick and solved my problem perfectly. I appreciate your assistance |
Hey @MiraHariri ... glad to hear that I could be of help. ✨ |
How did we do @MiraHariri? |
Comment from @MiraHariri on the other issue: Comment We should try to build a solution for this behavior. I will add this to the board. |
The problem in depth
When using checkboxSelection with rowGrouping, how can I make the grouped row act as a parent and when it is selected, all the children rows must be selected as well
For example:
![image](https://private-user-images.githubusercontent.com/88705227/308086792-9c1bd715-572d-492d-8d72-90ded1f5a620.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NzcwOTQsIm5iZiI6MTcyMDQ3Njc5NCwicGF0aCI6Ii84ODcwNTIyNy8zMDgwODY3OTItOWMxYmQ3MTUtNTcyZC00OTJkLThkNzItOTBkZWQxZjVhNjIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDIyMTMxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlMjE3NzEyYWU5ZTA2ZTdjZTg0NTUxNjMzMWMzMDU2YmIyY2U4Zjk2MmViOTE3MDQyNzRjMWE4NmQ3Y2RkODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Jp-gEz1KH67_gaGNYS2KXBk9MN-YaWyXi_fXn_gnDQ0)
here when selecting eu-west-1, I want all 12 rows under it to be selected as well (select all children rows)
Your environment
`npx @mui/envinfo`
Search keywords: checkboxSelection rowGrouping selectAll
Order ID: 78698
The text was updated successfully, but these errors were encountered: