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

[DataGridPro] Summary Row #1999

Open
1 task done
sagiBarkol opened this issue Jun 30, 2021 · 4 comments
Open
1 task done

[DataGridPro] Summary Row #1999

sagiBarkol opened this issue Jun 30, 2021 · 4 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! new feature New feature or request plan: Premium Impact at least one Premium user waiting for 👍 Waiting for upvotes

Comments

@sagiBarkol
Copy link

sagiBarkol commented Jun 30, 2021

Summary Row

  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

add a summary row that shows the sum of all or chosen row-column (for example: amount column)

Examples 🌈

Motivation 🔦

I have order reports and I need to know the sum of all the orders amount

@sagiBarkol sagiBarkol added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 30, 2021
@dtassone
Copy link
Member

You could customize the footer to do that
https://material-ui.com/components/data-grid/components/#footer

@dtassone dtassone added new feature New feature or request low priority waiting for 👍 Waiting for upvotes and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer status: to investigate labels Jun 30, 2021
@oliviertassinari oliviertassinari added component: data grid This is the name of the generic UI component, not the React module! and removed low priority labels Jun 30, 2021
@sagiBarkol
Copy link
Author

sagiBarkol commented Jul 7, 2021

You could customize the footer to do that
https://material-ui.com/components/data-grid/components/#footer

thanks! but it's kinda annoying that I don't get the records on the bulkAction callback, that's mean that I need to call the dataProvider for the "amount" for every checked record.
any idea how I can avoid it?

@oliviertassinari oliviertassinari changed the title Feature Request: SummaryRow [DataGrid] Summary Row Nov 5, 2021
@oliviertassinari oliviertassinari added components: DataGridPro and removed component: data grid This is the name of the generic UI component, not the React module! labels Nov 12, 2021
@oliviertassinari oliviertassinari changed the title [DataGrid] Summary Row [DataGridPro] Summary Row Nov 12, 2021
@oliviertassinari
Copy link
Member

oliviertassinari commented Nov 12, 2021

I would note that this feature likely depends on #208. It's also a bit related to #2795.

@oliviertassinari oliviertassinari added plan: Pro Impact at least one Pro user plan: Premium Impact at least one Premium user labels Dec 5, 2021
@oliviertassinari oliviertassinari added component: data grid This is the name of the generic UI component, not the React module! and removed plan: Pro Impact at least one Pro user labels Jan 29, 2022
@Here2Huynh
Copy link

You could customize the footer to do that https://material-ui.com/components/data-grid/components/#footer

I am currently using this approach to show a summary row. The only problem I am running into is that footer horizontal scroll doesn't sync with the rest of the data grid like how column header does in mobile view. Any advice on how to remedy this?

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! new feature New feature or request plan: Premium Impact at least one Premium user waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests

5 participants