如何在另一个内显示kendo模板?

CGN*_*007 5 javascript html5 kendo-ui angularjs kendo-grid

我有一个用于添加/编辑的kendo弹出模板.我需要在该模板的列表视图中显示带有复选框的产品列表.我找到了此链接以创建复选框的列表视图.我如何在另一个模板中使用它.

****正在寻找类似的东西**** 在此输入图像描述

HTML

 <script type="text/x-kendo-tmpl" id="myTemplate">

        <div class="item click" value="#=ProductID#" data-bind="checked: isSelected">
            <input type="checkbox" class="click" />
            <span class="checkbox">#:ProductName#</span>
        </div>
    </script>

    <!-- Kendo popup editor template -->
    <script id="popup_editor" type="text/x-kendo-template">
        <div style="width:700px">

            <div style=" margin-left:100px">
                <label for="Product">Products </label>
                <div id="listView" class="k-listview" style="width:150px;height:250px;overflow-y:scroll;margin-top:10px">
                </div>

            </div>

        </div>
    </script>
Run Code Online (Sandbox Code Playgroud)

脚本

      $scope.productddlDataSource = new kendo.data.DataSource({
            type: "json",
            transport: {
                read: "api/product"
            }
        });

    $("#listView").kendoListView({
        dataSource: $scope.productddlDataSource,
        template: kendo.template($("#myTemplate").html())
    });

    //KENDO UI POP_UP

    $scope.gridOptions = {
        dataSource: $scope.data,
        sortable: true,
        filterable: true,
        scrollable: false,
        toolbar: [{ name: "create", text: "ADD Product" }],
        editable: {
            mode: "popup",
            template: kendo.template($("#popup_editor").html()),
            confirmation: true
        },
...
.
.
Run Code Online (Sandbox Code Playgroud)

提前致谢!

CGN*_*007 0

kendo-angular-template为内部列表框实现。请参阅此处的示例http://demos.telerik.com/kendo-ui/listview/angular