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] Expanding empty groups #13204

Open
Tracked by #9328
RomanMain opened this issue May 22, 2024 · 3 comments
Open
Tracked by #9328

[data grid] Expanding empty groups #13204

RomanMain opened this issue May 22, 2024 · 3 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Row grouping Related to the data grid Row grouping feature recipe support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@RomanMain
Copy link

RomanMain commented May 22, 2024

The problem in depth

When grouping a column with a null or undefined value, is it possible to create a unique grouping key for such values ​​so that they can be expanded in the same way as other groups?

https://mui.com/x/react-data-grid/row-grouping/#rows-with-missing-groups. It is described here that by default the table will use inline for such values, but perhaps there is some workaround ?

Screenshot_4

Your environment

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

Search keywords: grouping, expand
Order ID: 82865

@RomanMain RomanMain added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels May 22, 2024
@flaviendelangle
Copy link
Member

flaviendelangle commented May 22, 2024

Hi,

You can use the groupingValueGetter prop to return a key ("NO_VALUE" for example)

It would probably be worth adding a doc example (cc @michelengelen)

@michelengelen
Copy link
Member

It would probably be worth adding a doc example (cc @michelengelen)

Absolutely! I will add this to the umbrella issue!
Thanks for the ping @flaviendelangle! 🙇🏼

@michelengelen michelengelen added component: data grid This is the name of the generic UI component, not the React module! feature: Row grouping Related to the data grid Row grouping feature recipe support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels May 22, 2024
@cherniavskii
Copy link
Member

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! feature: Row grouping Related to the data grid Row grouping feature recipe support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

No branches or pull requests

4 participants