Im using Kendo Template and I was able to create a conditional statement (IF statement) as stated on the documentaion. Here's my code.
#if ((item.ControlType) == "tbx"){#
@(Html.Kendo().AutoComplete()
.Name("#=ctrlid#")
.ToClientTemplate())
#}#
This works fine.
But what I'd like to have is a Switch Case Statement. I've tried this but it doesn't work. It says "Invalid Template".
# switch (item.ControlType) {#
# case "tbx": #
@(Html.Kendo().AutoComplete()
.Name("#=ctrlid#")
.ToClientTemplate())
# break; #
# }#
Am I missing something? Or is it just impossible for Kendo Template to interpret Switch Case Statements? (about the latter, I dont think so..I'm definitely missing something)
Can anyone help me please? Thanks!^^