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

[question] premium plan user trying to do multi level grouping on the same column #9309

Closed
2 tasks done
elizabethtrambulo opened this issue Jun 13, 2023 · 16 comments
Closed
2 tasks done
Labels
plan: Premium Impact at least one Premium user support: commercial Support request from paid users support: question Community support but can be turned into an improvement

Comments

@elizabethtrambulo
Copy link

Order ID or Support key 💳 (optional)

68277

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

The problem in depth 🔍

I want to be able to show a hierarchy of people in an organization using datagrid.

The organizations themselves can be nested. So an example I could have Military -> Navy -> Navy Seals.

Currently, I'm only seeing them group by the parent organization, which is what I've set it to. How do I achieve multiple nested levels using the same column?

Your environment 🌎

`npx @mui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
@elizabethtrambulo elizabethtrambulo added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Jun 13, 2023
@zannager zannager added support: question Community support but can be turned into an improvement plan: Premium Impact at least one Premium user labels Jun 13, 2023
@cherniavskii
Copy link
Member

Hey @elizabethtrambulo
You can have multiple grouping criteria in the grouping model - see this demo for example.
Is this what you're looking for?

@cherniavskii cherniavskii 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 Jun 13, 2023
@elizabethtrambulo
Copy link
Author

elizabethtrambulo commented Jun 14, 2023 via email

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Jun 14, 2023
@romgrk
Copy link
Contributor

romgrk commented Jun 14, 2023

Maybe you're looking for tree data instead of grouping?

@romgrk romgrk added the status: waiting for author Issue with insufficient information label Jun 14, 2023
@elizabethtrambulo
Copy link
Author

elizabethtrambulo commented Jun 15, 2023 via email

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Jun 15, 2023
@romgrk
Copy link
Contributor

romgrk commented Jun 15, 2023

IIRC path should include the row's own id, e.g. ['military', 'air force', 'division 1']

@elizabethtrambulo
Copy link
Author

elizabethtrambulo commented Jun 17, 2023 via email

@romgrk
Copy link
Contributor

romgrk commented Jun 19, 2023

I'm not exactly sure, but you could maybe try defining the behavior with renderCell.

@romgrk romgrk added the status: waiting for author Issue with insufficient information label Jun 19, 2023
@elizabethtrambulo
Copy link
Author

elizabethtrambulo commented Jun 20, 2023 via email

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Jun 20, 2023
@romgrk
Copy link
Contributor

romgrk commented Jun 20, 2023

Is it possible one of your rows is undefined? Note that we can't provide assistance unless you have a live example. This codesandbox.io template is a good starting point. Also note that if your row's id is .id, you don't need to define getRowId.

@romgrk romgrk added the status: waiting for author Issue with insufficient information label Jun 20, 2023
@elizabethtrambulo
Copy link
Author

elizabethtrambulo commented Jun 20, 2023 via email

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Jun 20, 2023
@romgrk
Copy link
Contributor

romgrk commented Jun 20, 2023

Which sandbox? If you make modifications, you need to share the updated link. Your github message also doesn't include the screenshot, it may be preferable to use github directly, mail replies don't integrate well.

@romgrk romgrk added the status: waiting for author Issue with insufficient information label Jun 20, 2023
@elizabethtrambulo
Copy link
Author

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Jun 20, 2023
@romgrk
Copy link
Contributor

romgrk commented Jun 20, 2023

The live example you have provided does not work. Make sure to provide a live example where we can reproduce the issue you're experiencing.

image

@romgrk romgrk added the status: waiting for author Issue with insufficient information label Jun 20, 2023
@elizabethtrambulo
Copy link
Author

Mine doesn't look like that at all

image

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Jun 20, 2023
@romgrk
Copy link
Contributor

romgrk commented Jun 20, 2023

Where is the code for your processRowUpdate in the codesandbox coming from? Did you write it yourself?

From what I can see in our docs, it's supposed to resolve to the updated row: https://mui.com/x/react-data-grid/editing/#server-side-validation

@romgrk romgrk added the status: waiting for author Issue with insufficient information label Jun 20, 2023
@elizabethtrambulo
Copy link
Author

elizabethtrambulo commented Jun 20, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan: Premium Impact at least one Premium user support: commercial Support request from paid users support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

4 participants