sum each row, column

sum each row, column

carolline89carolline89 Posts: 2Questions: 1Answers: 0

Hi,

I want to ask about how to manipulate data using jquery datatable.
I have a table like this : https://jsfiddle.net/5kqz8c17/2/

I want to calculate sum of each row and each column.. I tried using dynamic column, but not worked. row.range1 + row.range2 will be shown as string, for example range1 = 1000 and range2 = 2000, when i use row.range1 + row.range2, it will be shown as 10002000, which make me confused, because my expectation it will be shown as 3000. please help..

Thanks

This discussion has been closed.