I was having a problem with a grid toolbar template because of a # in a href
Worked out that I needed to excape the # with \\\ and not \\

<script type="text/x-kendo-template" id="toolbarTemplate">
     <div class='toolbar'>
         <a id="createButton" class="k-button" href="\\\#">Create</a>
     </div>
</script>

and not

<script type="text/x-kendo-template" id="toolbarTemplate">
    <div class='toolbar'>
        <a id="createButton" class="k-button" href="\\#">Create</a>
    </div>
</script>

I suppose it is kind of obvious, but hopefully it will help someone...

posted on 2016-08-15 11:32  wodo2008  阅读(626)  评论(0编辑  收藏  举报