-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Comments
+1 to question |
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. |
@mchapman your approach makes a deal but it is not reusable. But some ideas might be useful... |
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. |
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. |
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
The text was updated successfully, but these errors were encountered: