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.
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.
Ideally, I'd love to be able to pass in a function like below, but I don't think the Kendo grid supports it.
function(seed, model){
if(model.EligibleForDiscount === true){
return seed.Price + model.Price;
}
return seed.Price;
}
It would also have to automatically be refreshed upon updates to the grid.
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?
