gpt4 book ai didi

kendo-ui - Kendo Grid 上的自定义删除确认弹出窗口

转载 作者:行者123 更新时间:2023-12-04 14:59:14 25 4
gpt4 key购买 nike

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

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

我正在使用 remove 事件处理程序进行查看,但在行被删除后触发。

最佳答案

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

Kendo Grid 自定义命令 http://demos.kendoui.com/web/grid/custom-command.html

示例jsbin http://jsbin.com/OZeLuXA/1/edit

关于kendo-ui - Kendo Grid 上的自定义删除确认弹出窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20786223/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com