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

[DataGrid] Support row grouping and aggregation #3331

Closed
Janpot opened this issue Mar 26, 2024 · 2 comments · Fixed by #3369
Closed

[DataGrid] Support row grouping and aggregation #3331

Janpot opened this issue Mar 26, 2024 · 2 comments · Fixed by #3369
Labels
enhancement This is not a bug, nor a new feature good first issue Great for first contributions. Enable to learn the contribution process. waiting for 👍 Waiting for upvotes

Comments

@Janpot
Copy link
Member

Janpot commented Mar 26, 2024

Summary

The Toolpad built-in DataGrid component should support row grouping.

  • We should add a checkbox for "groupable" in the column definition UI, disabled? by default.
  • We should add a checkbox for "aggregable" in the column definition UI, disabled? by default

Column definition UI:
Screenshot 2024-04-02 at 10 53 37 AM

Examples

No response

Motivation

No response

Search keywords: datagrid row grouping

@Janpot Janpot added waiting for 👍 Waiting for upvotes enhancement This is not a bug, nor a new feature good first issue Great for first contributions. Enable to learn the contribution process. labels Mar 26, 2024
@b4s36t4
Copy link
Contributor

b4s36t4 commented Mar 30, 2024

Would love to work on this.

What type of control prop I should be using to render the names of provided columns and how should I make the control multi-select. Should I need to be creating a new custom component here?

I took rowGrouping as the argType with default as [] i.e empty array but when I tried to render it rowGrouping is passed empty string is there any issue with assigning default value or somewhere it's getting overridden?

Screenshot 2024-03-31 at 1 25 54 AM

My current progress is, I was able to add the prop i.e Row Group model which accept an array of string and passing it to DatagridPro component.

Need some help here.

@Janpot
Copy link
Member Author

Janpot commented Apr 4, 2024

@b4s36t4 I think we'd like to add options for groupable and aggregable in the existing columns component (see screenshot in issue body).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is not a bug, nor a new feature good first issue Great for first contributions. Enable to learn the contribution process. waiting for 👍 Waiting for upvotes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants