how to update row in footer ?
how to update row in footer ?
fatiha
Posts: 7Questions: 4Answers: 0
Hi all , i have many rows in footer and i would like to update one of them using the fnFooterCallback function ... how to access to it ?thanks
This discussion has been closed.
Answers
fnFooterCallback gets the first row in the footer as its parameter. You can find the parent of that node, which should be a tfoot element and then find all its children, which should be the set of tr rows.
how to do it ?
here is my function :
"fnFooterCallback": function( nRow, aaData, iStart, iEnd, aiDisplay ) {
data = aaData;
var total_impression = 0;
for (var i = 0; i < aiDisplay.length; i++) {
number = aaData[aiDisplay[i]][7]*1;
total_impression +=number;
}