mui / toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
1.3k stars 292 forks source link

[DataGrid] Support row grouping and aggregation #3331

Closed Janpot closed 7 months ago

Janpot commented 8 months ago

Summary

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

Column definition UI:

Screenshot 2024-04-02 at 10 53 37 AM

Examples

No response

Motivation

No response

Search keywords: datagrid row grouping

b4s36t4 commented 8 months ago

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 commented 7 months ago

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