如何摆脱/清除对剑道添加行弹出标题?

问题描述 投票:-1回答:1

我试图消除对剑道从添加行弹出标题。我设法它是不是一个新的行弹出一些其他的弹出窗口,不能似乎想出解决办法。 enter image description here

这是我对弹出代码

<script type="text/x-kendo-template" id="popup-editor-servers">
<p style="padding-left:15px; font-weight:bold; font-size:medium">Add Server</p>
<div class="k-edit-label">
    <label for="txt-host">Name:</label>
</div>

<!-- textbox editor for field: "LastName" -->
<!-- field: "LastName" is not included as a grid column -->
<input type="text" id="txt-host" class="k-input k-textbox" data-bind="value:Host">

我不会介意完全删除它,但我想只要我有机会获得冠军,我可以做任何事情。

有什么想法吗?

javascript jquery kendo-ui kendo-grid
1个回答
0
投票

弄清楚了。下面的代码做这项工作。网格是

<div id="grid-acl"
         data-role="grid"
         data-auto-bind="true"
         data-sortable="{allowUnsort: false}"
         data-filterable="false"
         data-editable='{mode: "popup", template: kendo.template($("#popup-editor").html())}' ,
         data-groupable="false"
         data-columns='[
        { field: "Name", title: "AD User", width: "400px" },
         @*{ field: "Sid", title: "SID" }, *@
        ]'
         data-bind="source: dataSource, events: { change: onChange, dataBound: onDataBound }">
    </div>

弹出内容是在这里:

<script type="text/x-kendo-template" id="popup-editor-servers">
<p style="padding-left:15px; font-weight:bold; font-size:medium">Add Server</p>
<div class="k-edit-label">
<label for="txt-host">Name:</label>
</div>

<input type="text" id="txt-host" class="k-input k-textbox" data-bind="value:Host">

在按钮点击:

create: function (event) {
            var grid = $("#grid-servers").data("kendoGrid");
            grid.options.editable = {
                mode: "popup", window: { title: "Add Server" }, template: kendo.template($("#popup-editor-servers").html())
            };

            grid.addRow();
        },
© www.soinside.com 2019 - 2024. All rights reserved.