kendo-examples-asp-net icon indicating copy to clipboard operation
kendo-examples-asp-net copied to clipboard

use custom helper in kendo template?

Open arisbro8 opened this issue 7 years ago • 0 comments

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?

arisbro8 avatar Feb 01 '18 13:02 arisbro8