Sum hidden filtered column
Sum hidden filtered column
I have a hidden column which contains a numeric value. I would like to sum that column when a filter is applied. I can sum the column inside fnFooterCallback looping over aaData, but that seems to work only when the table is initially drawn. I can also use fnFooterCallback as follows:
[code]
var oTable = $('#example').dataTable();
var data = oTable._('td:nth-child(6)', {"filter": "applied"});
var Total = 0;
for ( var i = 0; i
[code]
var oTable = $('#example').dataTable();
var data = oTable._('td:nth-child(6)', {"filter": "applied"});
var Total = 0;
for ( var i = 0; i
This discussion has been closed.