如何更改 Kendo UI Grid 上的文本销毁或删除命令操作? [英] How to change the text on Kendo UI Grid destroy or delete command action?
本文介绍了如何更改 Kendo UI Grid 上的文本销毁或删除命令操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是 KendoUI KendoGrid.我有一个带有删除按钮或销毁"操作的列.Kendo 显示一个带有文本您确定要删除此记录吗?"的警告框.我需要这篇文字更具体地针对我的情况.您如何自定义此文本?
I'm using a KendoUI KendoGrid. I have a column with delete button or "destroy" action. Kendo displays an alert box with the text "Are you sure you want to delete this record?" I need this text to be more specific to my situation. How do you customize this text?
任何帮助将不胜感激.
我添加列的代码是:
$reports.kendoGrid(
{
dataSource: dataSource,
pageable: {
refresh: true,
pageSizes: true
},
toolbar: [{ name: "create", text: "Add" }],
columns:
[
{ field: 'name', title: 'Report', sortable: true },
{ command: ["edit", "destroy"], title: " ", width: "180px", }
],
editable: "inline",
selectable: true,
推荐答案
根据 Kendo Grid 文档:
editable.confirmation 布尔值 |字符串
定义删除项目时将在确认框中使用的文本.
Defines the text that will be used in confirmation box when delete an item.
这篇关于如何更改 Kendo UI Grid 上的文本销毁或删除命令操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文