Column rendering problem

Column rendering problem

azonekz@gmail.comazonekz@gmail.com Posts: 32Questions: 9Answers: 1

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

  • azonekz@gmail.comazonekz@gmail.com Posts: 32Questions: 9Answers: 1
    Answer ✓

    Ok, problem solved, thanks

  • allanallan Posts: 61,971Questions: 1Answers: 10,160 Site admin

    Thanks for posting back. Good to hear you've got it working now.

    Allan

This discussion has been closed.