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

Calculating Total for the data present in the column #679

Closed
sagarwasule opened this issue Sep 3, 2013 · 6 comments
Closed

Calculating Total for the data present in the column #679

sagarwasule opened this issue Sep 3, 2013 · 6 comments

Comments

@sagarwasule
Copy link

Hi,
I want to calculate the total for the data present in the column. Suppose I have a column with principal amount. I want to display the net total amount at the bottom of the grid or footer of the grid.

How can I implement this ?
Thanks

@just-boris
Copy link

+1 to question

@mchapman
Copy link

I have done this in something I am working on. May not be the best approach, but it may spark some ideas... https://github.com/mchapman/forms-angular/blob/dev/app/js/directives/ngGridTotalCell.js and https://github.com/mchapman/forms-angular/blob/dev/app/js/controllers/analysis.js are where the relevant bits of code are. Should be in master branch within a day or three.

@just-boris
Copy link

@mchapman your approach makes a deal but it is not reusable. But some ideas might be useful...

@PaulL1
Copy link
Contributor

PaulL1 commented Apr 9, 2015

This is a pretty old issue to be commenting on. ui-grid has native footers that can do aggregation. I think ng-grid 2.x also has, and those would be the right way to go about it.

@SalasSanchez
Copy link

I couldn't find that functionality on ngGrid, so that's interesting. I also think many people are not onto ui-grid yet, and so considered my answer helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants