如何改变剑道UI格文销毁或删除命令操作? [英] How to change the text on Kendo UI Grid destroy or delete command action?

查看:187
本文介绍了如何改变剑道UI格文销毁或删除命令操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是KendoUI KendoGrid。我有一个删除按钮或消灭行动一列。剑道显示一个警告框与文本您确定要删除此记录?我需要这段文字更具体到我的情况。你如何定义这个文本?

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?

任何帮助,将不胜感激。

Any help would be appreciated.

我添加的列代码是:

$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,


推荐答案

根据剑道电网文档

editable.confirmation 布尔|字符串

定义将在确认所使用的文字框时删除项目。

Defines the text that will be used in confirmation box when delete an item.

这篇关于如何改变剑道UI格文销毁或删除命令操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆