I am trying to create a template that will only be displayed if the data value is "Low". This is how I have set up my template column:
template: '# if( data=="Low" ){#<span><i class="fa fa-square blue"></i> <span># } '
Unfortunately, when I try to display it, I get an error message:
Error: Invalid template:'# if( data=="Low" ){# # } #: data #' Generated code:'var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;with(data){$kendoOutput=''; if( data=="Low" ){;$kendoOutput+=' '; };$kendoOutput+=': data ';;$kendoOutput+=;}return $kendoOutput;'
I am new to this and would appreciate any help on resolving this issue. Thank you.