kendo-examples-asp-net
kendo-examples-asp-net copied to clipboard
use custom helper in kendo template?
hai everyone, i want to ask.
i have custom helper:
@helper helper(string param)
{
if (param== "K")
{
<span>Value 1</span>
}
else if (param== "SK")
{
<span>Value 2</span>
}
else
{
<span>-</span>
}
}
and i want to render this helper in kendo template:
<dl>
<dt>Value 1</dt>
<dd>#:value1#</dd>
<dt>Value 2</dt>
<dd>@helper(#:value2#)</dd>
</dl>
but i can't. can you help me?