render sum datatable
render sum datatable
dickynh
Posts: 1Questions: 1Answers: 0
{
data: null, render: function(rowData){
return ( rowData.A + rowData.B )
}
},
Permission to ask questions
I want to add up the data in the row (record), 15 + 2 = 17, but with the above script it becomes 152 (even combines), maybe someone knows the addition operator for rendering datatables, for columns there is no problem, thank you in advance .
Answers
That's a standard JS issue - just pass your numbers into parseInt(),
Colin