Это, как я достиг этого без колонтитула обратного вызова
HTML
<table data-toggle="data-table" class="table compact" cellspacing="0" id="dt">
<thead>
<tr>
<th>S/N</th>
<th>Name</th>
<th>Class</th>
<th>Term</th>
<th>Session</th>
<th>Date</th>
<th>Amount</th>
<th>Status</th>
</tr>
</thead>
<tfoot>
<tr id="tfooter">
</tr>
</tfoot>
<tbody id="payment">
</tbody>
</table>
JavaScript
var dt = $('#dt').dataTable().api();
$.each(resp.payments, function (key, value) {
//add data from server via ajax
dt.row.add([ ]);
});
//add tfoot
$('#tfooter').append(
'<th colspan="6"><strong>TOTAL</strong></th>'+
'<th colspan="2"><strong>₦'+ total +'</strong></th>'
);
//then redraw
dt.draw();