Hello,
I am trying to add a totals row to my grid, and I've boiled my problem down to a very simple jsfiddle:
http://jsfiddle.net/2efYE/20/
Note that there is an "Uncaught ReferenceError: sum is not defined" error.
If you replace "sum" in the footerTemplate with a static value (e.g. "100") then it works fine. I must be missing something very basic, but after spending a lot of time staring at the grid aggregates demo and experimenting, I still can't seem to figure it out. Maybe something unique to MVVM? Maybe you can't do aggregates without also grouping (although I tried it with groups, too)?
Thanks in advance for the help,
--Dan
I am trying to add a totals row to my grid, and I've boiled my problem down to a very simple jsfiddle:
http://jsfiddle.net/2efYE/20/
Note that there is an "Uncaught ReferenceError: sum is not defined" error.
If you replace "sum" in the footerTemplate with a static value (e.g. "100") then it works fine. I must be missing something very basic, but after spending a lot of time staring at the grid aggregates demo and experimenting, I still can't seem to figure it out. Maybe something unique to MVVM? Maybe you can't do aggregates without also grouping (although I tried it with groups, too)?
Thanks in advance for the help,
--Dan