Search code examples
javascriptangularjsangularjs-directiveangularjs-scopeangular-ui-grid

How to get column footer data in Angular UI-Grid?


For example, in this tutorial, if there is any way to get the data in the column footer? I'd like to present the total numbers in somewhere else. enter image description here Thanks in advance.


Solution

  • You can access the sum for the certain column this way: $scope.gridApi.grid.columns[column_number].getAggregationValue() // Here I get 281568

    I have created an example here: JsBin