Using footercallback function to find total for more than 1 column.
Using footercallback function to find total for more than 1 column.
armegaddon
Posts: 3Questions: 1Answers: 0
I am using footercallback function to find the total of certain columns, but it seems to be calculating for only one column.
If any one here know the workaround please help me.
This discussion has been closed.
Answers
The total number of columns? Or the Total of some value inside the columns?
Maybe some code for us to ponder?
Please look at this example
http://live.datatables.net/cuhukumu/2/edit
you can see the sum is calculated for multiple columns.
this is done using the sum() function.
It seems to be not working for me.
Is there any way to do it with footercallback() or sum()?
The above piece of code worked. This can sum up the 3rd column and 4th column simultaneously, apart from that you can add any number of columns to that to show the sum.
[closed]