I have a kendo template with a column
columns: [{
field: "ProcessingStatus",
width: "10%",
title: "Status",
/* template: "#= ProcessingNote == 'Finished' ? openWindow(ProcessingStatus, ResultRequestId) : alertErrorMessage(ProcessingNote) #"*/
template: "#= ProcessingStatus != 'Failed'? openWindow(ProcessingStatus, ResultRequestId) : getError(ProcessingNote, ProcessingStatus) #"
},
For getError, I am having trouble because I am trying to create an onclick event where when clicking on ProcessingStatus it will alert the ProcessingNote. My method is as below:
function getError(errorMsg, currentStatus) {
function getErrorMessage(error) {
alert(error);
}
return "<div onclick='getErrorMessage("+ errorMsg +")'>" + currentStatus + "</div>";
}
How should I write it?