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] Check the grouped child rows on select of the grouped row #13850

Closed
ashishchoudhary12 opened this issue Jul 16, 2024 · 3 comments
Closed
Labels
component: data grid This is the name of the generic UI component, not the React module! customization: logic Logic customizability duplicate This issue or pull request already exists feature: Row grouping Related to the data grid Row grouping feature feature: Selection Related to the data grid Selection feature

Comments

@ashishchoudhary12
Copy link

ashishchoudhary12 commented Jul 16, 2024

Steps to reproduce

I want to check the grouped child rows when the grouped row is selected. I've tried the solution mentioned here, but it didn't work. I also tried the approach discussed here, but it didn't work either. Here's what I've tried so far:
https://codesandbox.io/p/sandbox/staging-bash-lmhs27?file=%2Fsrc%2FDemo.tsx

Current behavior

No response

Expected behavior

No response

Context

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: Check the grouped child rows on select of the grouped row

@ashishchoudhary12 ashishchoudhary12 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 16, 2024
@michelengelen michelengelen changed the title Check the grouped child rows on select of the grouped row [data grid] Check the grouped child rows on select of the grouped row Jul 16, 2024
@michelengelen michelengelen added duplicate This issue or pull request already exists component: data grid This is the name of the generic UI component, not the React module! feature: Selection Related to the data grid Selection feature feature: Row grouping Related to the data grid Row grouping feature customization: logic Logic customizability and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 16, 2024
@michelengelen
Copy link
Member

Hey @ashishchoudhary12 ... it works as expected with Data Grid Premium: DEMO

I have added a recipe PR so that we can provide a demo on the docs as well: #13856

I will close this one in favor of #4248

@michelengelen michelengelen closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2024
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.

@ashishchoudhary12: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

@ashishchoudhary12
Copy link
Author

ashishchoudhary12 commented Jul 17, 2024

@michelengelen Thank you it is working..
Once I checked how can I get the checked rows.
Like either by apiRef.current.something() or using some prop?
Second question is can I shift the child rows little right using marginLeft: ??

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! customization: logic Logic customizability duplicate This issue or pull request already exists feature: Row grouping Related to the data grid Row grouping feature feature: Selection Related to the data grid Selection feature
Projects
None yet
Development

No branches or pull requests

2 participants