Awesome plugin! I'm soooo close to getting exactly what I want, just need a little help.
I have grouping working. Now I want to sum the columns for each group and display the total in the group header. Here's a jsfiddle of it:
http://jsfiddle.net/RgKPZ/123/
The only problem is that the columns I want to sum aren't being added together. The values are being displayed, but like a string instead of adding together like numbers. Also, not all of the values are even being displayed as a string - there are repeats going on. I tried converting using Number() and parseInt() but no luck. I'm trying to put this into the callback function (like the grouping function) so that the values will be summed after each table filter, too.
I'm sure I just have a variable wrong or in the wrong place or something, but I just can't figure it out. Frustratingly close! :-(
TIA,
Matt
I have grouping working. Now I want to sum the columns for each group and display the total in the group header. Here's a jsfiddle of it:
http://jsfiddle.net/RgKPZ/123/
The only problem is that the columns I want to sum aren't being added together. The values are being displayed, but like a string instead of adding together like numbers. Also, not all of the values are even being displayed as a string - there are repeats going on. I tried converting using Number() and parseInt() but no luck. I'm trying to put this into the callback function (like the grouping function) so that the values will be summed after each table filter, too.
I'm sure I just have a variable wrong or in the wrong place or something, but I just can't figure it out. Frustratingly close! :-(
TIA,
Matt