[英]Uncaught Error: Invalid template: Kendo Ui Grid
What could be Causing This kind of error in KendoGrid when i add Conditions in the Template it says Invalid Template 当我在模板中添加“条件无效”时,会在KendoGrid中引起这种错误
I read and followed the instructions in adding Conditions and i think what i did was right 我阅读并遵循添加条件中的说明,我认为我所做的是正确的
This is my code inside the Template 这是我模板中的代码
# if (${ LogicalDelete } == false) { #
<ul class="top-btns" style="float:right;" >
<a class="btn btn-gray fa fa-plus" id=btnApply${ID}></a>
</ul>
# } else { #
<ul class="top-btns" style="float:right;" >
<a class="btn btn-gray fa fa-minus" id=btnApply${ID}></a>
</ul>
# } #
You probably needed quotes around your id
attributes. 您可能需要在
id
属性周围加引号。 Also, (and I'm not 100% on this) the ${}
syntax might have something to do with it as well. 另外,(而且我不是100%)
${}
语法也可能与此有关。 Try this: 尝试这个:
# if (LogicalDelete === false) { #
<ul class="top-btns" style="float:right;" >
<a class="btn btn-gray fa fa-plus" id="btnApply#=ID#"></a>
</ul>
# } else { #
<ul class="top-btns" style="float:right;" >
<a class="btn btn-gray fa fa-minus" id="btnApply#=ID#"></a>
</ul>
# } #
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.