当前位置: 动力学知识库 > 问答 > 编程问答 >

angularjs - Kendo template not firing Angular ng-click

问题描述:

I have this template inside of my datagrid:

<div id="grid" data-ng-controller="UsersCtrl" data-ng-init="initGrid()" >

<script type="text/x-kendo-template" id="preparedViewsToolbar" ng-init="initPreparedViews()">

<div class="toolbar">

<!-- SAVE CUSTOM VIEW BTN -->

<a class="k-button k-button-icontext k-grid-save-changes"

data-ng-controller="UsersCtrl"

ng-click="showCustomViewModal();">

Add actual selection to custom views

</a>

</div>

</script>

</div>

I injecting template inside of the datagrid toolbar:

 { template: kendo.template($("#preparedViewsToolbar").html()) },

Template is correctly displayed in datagrid but after click is not firing predefined action on controller.

I tried to find any working solutions for a few hours, but without luck.

Thanks for any advice.

分享给朋友:
您可能感兴趣的文章:
随机阅读: