Is there a feature to add a last row which gives the summary of the data?
Is there a feature to add a last row which gives the summary of the data?
juria_roberts
Posts: 11Questions: 0Answers: 0
Is there a feature to add a last row which gives the summary of the data? For example gives the average of all the numeric columns,total of all the numeric columns etc
This discussion has been closed.
Replies
http://www.datatables.net/usage/callbacks#fnFooterCallback
[code]
aDataSet[i]=[temp[i].keyword,temp[i].system_impression,temp[i].clicks,temp[i].conversion,temp[i].L2A,temp[i].L2R,temp[i].R2A,temp[i].RPC];
}
$('#dynamic'+j).html( '' );
$('#example'+j).dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aaData": aDataSet,
"oLanguage": {
"sSearch": "Search Keywords:"
},
"fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) {
var total =0;
for ( var i=0 ; i
if you inspect the demo table structure you can see it has a footer
http://www.datatables.net/examples/advanced_init/footer_callback.html
[code]
Total:
16.66% (100% total)
[/code]
Allan