title: Kendo Grid - Dynamic aggregrate footer template value
body: <p>I'm building a grid that needs to have a sum in the footer, but the built in sum aggregate doesn't quite work for my needs.</p>
  
  <p>As an example, say I am building a grid with a list of products that I am selling.  I also have a field that says "Eligible for discount".  I want to display a sum of the prices of the products, but only for the items that are eligible for discount.</p>
  
  <p>Ideally, I'd love to be able to pass in a function like below, but I don't think the Kendo grid supports it.</p>
  
  <pre class="lang-js prettyprint-override"><code>function(seed, model){
    if(model.EligibleForDiscount === true){
        return seed.Price + model.Price;
    }
  
    return seed.Price;
  }
  </code></pre>
  
  <p>It would also have to automatically be refreshed upon updates to the grid.</p>
  
  <p>Is the only way to do this by manually handling the events on the grid and using the help of jQuery to update the footer template?</p>