简体   繁体   English

Kendo Grid 自定义删除确认消息

[英]Kendo Grid Custom Delete confirmation messages

I am using Kendo MVVM.我正在使用剑道 MVVM。 I have a grid with basic functionalities like Add, Edit Delete.我有一个具有基本功能的网格,例如添加、编辑删除。 For delete, I use the below code.对于删除,我使用以下代码。 I get a javascript confirmation message when I click on delete.单击删除时,我收到一条 javascript 确认消息。 Instead, I need a Kendo Confirmation message with customized text.相反,我需要带有自定义文本的剑道确认消息。 Can someone help me with this?有人可以帮我弄这个吗?

My code for delete.我的删除代码。

,{
    command: [{
         name: 'destroy',
         text: ''
   }]                       
 }

You can find information on this functionality in the Kendo UI for JQuery documentation page Customize Confirmation Window您可以在 Kendo UI for JQuery 文档页面自定义确认窗口中找到有关此功能的信息

To achieve this behavior, use the Kendo UI templates, the Window, and the remove dataSource method of Grid.要实现此行为,请使用 Kendo UI 模板、Window 和 Grid 的remove dataSource 方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM