Kendo ui 剑道网格上的自定义删除确认弹出窗口

Kendo ui 剑道网格上的自定义删除确认弹出窗口,kendo-ui,kendo-grid,Kendo Ui,Kendo Grid,我有一个剑道网格,我需要根据被删除行中的数据自定义删除确认消息框。我有一个定制的通用消息作为网格配置的一部分,如下所示 editable: { confirmation: "Are you sure that you want to delete this record?", mode: "popup", template: kendo.template($("#popup-editor").html()) } 我曾考虑过使用remove事件处理程序,但该处理程

我有一个剑道网格,我需要根据被删除行中的数据自定义删除确认消息框。我有一个定制的通用消息作为网格配置的一部分,如下所示

 editable: {
     confirmation: "Are you sure that you want to delete this record?",
     mode: "popup",
     template: kendo.template($("#popup-editor").html())
}

我曾考虑过使用remove事件处理程序,但该处理程序会在删除行后触发。

我猜您需要手动执行此操作。只需向网格中添加一个自定义按钮,该按钮将调用您的代码来删除该项

剑道格网自定义命令


示例jsbin

剑道上有一个演示,您可以尝试。但这可能是最新版本,因此可能无法与旧版本配合使用

请在他们的官方网站上查看“定制剑道UI网格的删除确认对话框”

对于旧版本,您可以在Telerik论坛中选中“使用剑道UI窗口作为网格中的确认提示”

HTML代码

<div>
      <div id="div_alert_window"></div>
      <div class="dialog button">
             click on dialog: <input type="button" value="click me!" id="btnClickMe" />
      </div>
</div>
更好的解决方案:更好的解决方案:可能重复
   $(function () {
       $("#btnClickMe").click(function () {
           // This is for [Warning / Information / Confirm / Error] dialog box.
           confirmDialogMSG("Error", 
                                "Inflow encountered some internal error.", 
                                "Error",  ["OK"],  null);
       });
   });