Reputation: 858
I've prepared template for my Kendo Grid's column:
# if(status == 0) { #
#= "Error" #
# else if(status == 1) { #
#= "Warning" #
# else if(status == 2) { #
#= "OK" #
# } #
It's seems OK to me, but I'm getting an error "Error: Invalid template". Grid displays numeric values, but I'd like to replace it with string values.
So where's the problem?
Upvotes: 0
Views: 148
Reputation: 15155
You are missing a closing bracket on the first and second if statement.
# if(status == 0) { #
#= "Error" #
# } else if(status == 1) { #
#= "Warning" #
# } else if(status == 2) { #
#= "OK" #
# } #
Upvotes: 2