DataTables footer callback TOTAL
DataTables footer callback TOTAL
marcosfonseca
Posts: 3Questions: 1Answers: 0
Hi
I'm using 1.9.4 version, and i'm trying to put the total in the end of table...
I use the callback function, and it works fine, if i don't use filter.
When the data is filtered, the total don't sum the DISPLAY data.
"fnFooterCallback": function ( nRow, aaData ) { }
aaData is always the ALL data of table. How can I use the filtered data?
This discussion has been closed.
Answers
Solved:
var dados = this._('td:nth-child(6)', {"filter": "applied"});
for ( var i=0 ; i<dados.length ;
{
var v = dados[i].toString();
toal = total + v;
}