I have a KendoGrid that have a column like:
{
title: "Column1",
template: <a href="javascript:customJsFunction(#= data #)">click here</a>',
},
..first this code doesnt work. Im trying to pass the whole "data" (the data for the current row) to a javascript function. Thanks in advance.
Try this template using JSON.stringify()
:
"<a href='javascript:customJsFunction(#= JSON.stringify(data) #)'>Click here</a>"
Demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With