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] Remove blank row from a group #16861

Open
Anupheaus opened this issue Mar 7, 2025 · 1 comment
Open

[data grid] Remove blank row from a group #16861

Anupheaus opened this issue Mar 7, 2025 · 1 comment
Labels
feature: Aggregation Related to the data grid Aggregation feature feature: Row grouping Related to the data grid Row grouping feature new feature New feature or request status: waiting for author Issue with insufficient information support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@Anupheaus
Copy link

Anupheaus commented Mar 7, 2025

Summary

When a group is collapsed, the aggregations show for the group and this makes sense. When the group is expanded and you have set the aggregations to show in the footer. This leaves the top row of the group completely empty. When showing a lot of rows, this can cause a lot of wasted space, especially when, for us at least, we have a lot of groups and they are expanded by default.

We would like to have the ability to show the data "moved up" so that the first row of the group is shown in that top row, and subsequent rows below it as normal so we don't have "gaps" with no information.

Examples

Here is what the issue is (the red box) and the blue arrows point out what we'd like to have happen please:

Image

Motivation

We are showing a lot of grouped data in our reports, there aren't many rows within each group, but we also like to show the aggregations within the groups, but we have all the groups open by default. This causes a lot of "white space" in our reports. We like the look of the groups and we like the aggregations, but this white space is causing our reports to be longer than necessary for our users.

Search keywords: blank row group

Order ID: 90059

@Anupheaus Anupheaus added new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 7, 2025
@github-actions github-actions bot added the support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ label Mar 7, 2025
@Anupheaus Anupheaus changed the title Remove blank row from a group [data-grid] Remove blank row from a group Mar 7, 2025
@michelengelen
Copy link
Member

michelengelen commented Mar 7, 2025

Hey @Anupheaus ... did you try this example from the docs: Usage with row grouping?

Or do you show the aggregation inside the group already?

@michelengelen michelengelen 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 Mar 7, 2025
@michelengelen michelengelen changed the title [data-grid] Remove blank row from a group [data grid] Remove blank row from a group Mar 7, 2025
@michelengelen michelengelen added feature: Row grouping Related to the data grid Row grouping feature feature: Aggregation Related to the data grid Aggregation feature labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: Aggregation Related to the data grid Aggregation feature feature: Row grouping Related to the data grid Row grouping feature new feature New feature or request status: waiting for author Issue with insufficient information 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

2 participants