how to update row in footer ?

how to update row in footer ?

fatihafatiha 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

Answers

  • vogomatixvogomatix Posts: 38Questions: 3Answers: 7
    edited July 2014

    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.

  • fatihafatiha Posts: 7Questions: 4Answers: 0

    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;
    }

                                    }
    
This discussion has been closed.