Render problem
Render problem
Cdya
Posts: 12Questions: 5Answers: 0
Hello supports
Now I need to sum targets: 5
in render 2 like this
return (+row.subjects_d.Exam4 + +row.subjects_d.ExamFinal, target5);
{
"render": function ( data, type, row ) {
return (Math.round((+row.subjects_d.Exam1*3 + +row.subjects_d.Exam2*3 + +row.subjects_d.Exam3*3)/3));
},
"targets": 5,
},
{
"render": function ( data, type, row ) {
return (+row.subjects_d.Exam4 + +row.subjects_d.ExamFinal);
},
"targets": 6,
},
This discussion has been closed.
Answers
That doesn't look like valid Javascript to me - the
+ +
should be throwing an error in your browser's console. Is it?Allan