I need to use the Kendo MVC helper Razor code in a template as follows:
<script id="some-reusable-control" type="text/x-kendo-template">
@(Html.Kendo().Window()
.Name("details-window"))
</script>
But the problem is that HTML + JS contains the # character (a sharp character), which is displayed as part of the # = # syntax inside the template. Therefore, I get the error "parse error".
<div id="details-window" style="display:none"></div><script>
jQuery(function(){jQuery("#details-window
").kendoWindow({animation:false,modal:true,draggable:true });});
</script>
Can someone please provide me a solution on how to use Kendo helpers in templates.
source
share