I want to replace a character a string within a template, is there a way I can do that?
I tried the following but get an invalid template
I tried the following but get an invalid template
<
script
id
=
"template"
type
=
"text/x-kendo-template"
>
#= kendo.toString(replaceString(#= Name #))#
</
script
>
<
script
type
=
"text/javascript"
>
function replaceString(value) {
return value.replace(",", "<
br
/>");
}
</
script
>