Column rendering problem
Column rendering problem
Hi,
I am trying to use value from other columns while rendering column 8:
"columnDefs": [
{
"targets": [ 8 ],
"render": function (data, type, row) {
console.log(row[0]);
return data+row[0];
}
}
]
But row[0] is displayed as undefined. I tried other values (row[1] and row[2]) so I am 100% sure that the value for that column is defined.
Should that render function definition work? What is wrong if so?
Thanks!
This question has an accepted answers - jump to answer
Answers
Ok, problem solved, thanks
Thanks for posting back. Good to hear you've got it working now.
Allan