title: Angular + ui-grid + Calculate the total from column
body: <p>I am referring the Angular UI grid page 
  <a href="http://ui-grid.info/docs/#/tutorial/105_footer" rel="nofollow">http://ui-grid.info/docs/#/tutorial/105_footer</a></p>
  
  <p>Sample code:</p>
  
  <pre><code>     $scope.gridOptions.columnDefs = [{
          name: 'grandTotalSales',
          displayName: 'Total Amount',
          cellFilter: 'sumFilterSales:this', 
          aggregationType: uiGridConstants.aggregationTypes.sum,        
          enableCellEdit: false,
          filter: {
              placeholder: 'Search..'
          },
          enableSorting: true
         }]
  </code></pre>
  
  <p>Code for the filter function is</p>
  
  <pre><code> .filter('sumFilterSales', function () {
    return function (value,scope) {
       if(scope.row !== undefined) {
       var netAmount=  scope.row.entity.netAmount;
       var vatSales= scope.row.entity.vatSales;     
       var sum = Math.round(netAmount) + Math.round(vatSales);
       return sum;
      }
     };
   })
  </code></pre>
  
  <p>Now aggregationType does not give the sum of the column if I am using this <strong>sumFilterSales</strong> 
  If we removed this sumFilterSales then it gives the summation correctly.</p>
  
  <p>Please let me know How to calculate summation of the column in another way.
  Please note I can not remove the sumFilterSales as it does automatice calculation of first two column in to third column.
  I want to have the summation on last column in footer.</p>