Hi All,
This is my click event code for search image of a template, but the click event doesn't fired. Is there something missing here? or is there a better way to do this? TIA
columns[{
title: "Name",
field: "Name",
width: 225,
template: "#=Name# <span class='k-icon k-i-close' id='temp' style='float: right;' click='test()'></span>",
.....
}],
function test(){
alert("Hello");
}
hey Steve can you please post your solution as I'm facing the same issue and I'm unable to figure out how to access dataItem on the click event of button which is placed in the itemTemplate.