Hi,
I am using the Kendo Grid with the MVC helpers, and want to make a conditional area in ClientRowTemplate.
Currently I have the following ClientRowTemplate:
and this JavaScript:
This works partially. My JavaScript is being fired, but the result is escaped before it is being added into the grid. So, instead of getting an optional tablerow with Notes, I get the html displayed.
Is there any way to indicate to Kendo to treat the JavaScript output as raw HTML in this context?
Thanks,
Ewald
I am using the Kendo Grid with the MVC helpers, and want to make a conditional area in ClientRowTemplate.
Currently I have the following ClientRowTemplate:
.ClientRowTemplate("<
tr
>" +
"<
td
>" +
"${ FirstName} " +
"</
td
>" +
"<
td>
" +
"${ LastName} " +
" </
td
>" +
"</
tr
>" +
"${optionalNotes(Notes)}")
function
optionalNotes(t) {
if
(t.length > 0) {
return
"<tr><td colspan='2'>"
+ t +
"</td></tr>"
;
}
else
{
return
""
;
}
}
Is there any way to indicate to Kendo to treat the JavaScript output as raw HTML in this context?
Thanks,
Ewald