fnCreatedRow how to sum column each row?

fnCreatedRow how to sum column each row?

wachirapolzzwachirapolzz Posts: 5Questions: 3Answers: 0
edited February 2017 in Free community support

fnCreatedRow how to sum each row

$('#example').dataTable( {

"fnCreatedRow": function( nRow, aaData, iStart, iEnd, aiDisplay ,iDataIndex ) {


  var iRowTotal = 0;



  $('td:eq(9)', nRow).html(iRowTotal);

},

Example
Table
ID | Value | fnCratedRow
1 | 10 | 10
2 | 20 | 30
3 | 30 | 60

Answers

This discussion has been closed.