I am using datatables.net in my Code and I have a scenario where I need to pass value of some other column in render function of another column in a javascript as parameter. I have tried with row.columnname but I am getting undefined when trying to view the value.
Below is my code. Any help on this will be very useful.
Inside Ajax under columns section while binding datatables.net with my data
columns :[ {"data":"test1"}
{"data":"test2"} {
"data" :"test3" ,"render":function(data,row)
{ return xyz(row.test1, row.test2) //calling another javascript function with other 2 column values. Also getting row.test1 and row.test2 as undefined. Need proper value of test1 and test2
} }]
Thanks