Kendo ui 剑道网格-如何动态转换顶部动作按钮?
我想动态翻译剑道研磨下面的按钮(见下图) 如果有人知道如何翻译“拖放”文本,我会非常高兴 谢谢你的帮助 编辑: 我尝试过这样做,但不起作用:Kendo ui 剑道网格-如何动态转换顶部动作按钮?,kendo-ui,kendo-grid,translation,Kendo Ui,Kendo Grid,Translation,我想动态翻译剑道研磨下面的按钮(见下图) 如果有人知道如何翻译“拖放”文本,我会非常高兴 谢谢你的帮助 编辑: 我尝试过这样做,但不起作用: toolbar: [ { template: kendo.template($("#preparedViewsToolbar").html()) }, { name: "create" }, { name: "save" },
toolbar: [
{ template: kendo.template($("#preparedViewsToolbar").html()) },
{ name: "create" },
{ name: "save" },
{ name: "cancel" }
],
messages: {
commands: {
cancel: "My Cancel changes",
canceledit: "My Cancel"
}
},
如果使用最新版本的剑道用户界面,这是相当容易的。只需将数组中的消息定义为网格定义中的消息:
messages: {
commands: {
cancel: "My Cancel changes",
canceledit: "My Cancel",
create: "My Add new record",
destroy: "My Delete",
edit: "My Edit",
save: "My Save changes",
select: "My Select",
update: "My Update"
}
}
文件
对于可分组邮件,您应该执行以下操作:
groupable : {
messages: {
empty : "My Drag a column header and drop it here to group by that column"
}
},
文件
请看这里:
编辑:对于Kendo UI的较旧版本,如2014.1.528,应使用以下方法:
toolbar : [
{ template: kendo.template($("#preparedViewsToolbar").html()) },
{ name: "create", text : "My Add new record" },
{ name: "save", text: "My Save changes" },
{ name: "cancel", text: "My Cancel changes" }
],
这里修改了前面的JSFIDLE示例:如果使用最新版本的剑道UI,这非常容易。只需将数组中的消息定义为网格定义中的消息:
messages: {
commands: {
cancel: "My Cancel changes",
canceledit: "My Cancel",
create: "My Add new record",
destroy: "My Delete",
edit: "My Edit",
save: "My Save changes",
select: "My Select",
update: "My Update"
}
}
文件
对于可分组邮件,您应该执行以下操作:
groupable : {
messages: {
empty : "My Drag a column header and drop it here to group by that column"
}
},
文件
请看这里:
编辑:对于Kendo UI的较旧版本,如2014.1.528,应使用以下方法:
toolbar : [
{ template: kendo.template($("#preparedViewsToolbar").html()) },
{ name: "create", text : "My Add new record" },
{ name: "save", text: "My Save changes" },
{ name: "cancel", text: "My Cancel changes" }
],
这里修改了前面的JSFIDLE示例:如果使用最新版本的剑道UI,这非常容易。只需将数组中的消息定义为网格定义中的消息:
messages: {
commands: {
cancel: "My Cancel changes",
canceledit: "My Cancel",
create: "My Add new record",
destroy: "My Delete",
edit: "My Edit",
save: "My Save changes",
select: "My Select",
update: "My Update"
}
}
文件
对于可分组邮件,您应该执行以下操作:
groupable : {
messages: {
empty : "My Drag a column header and drop it here to group by that column"
}
},
文件
请看这里:
编辑:对于Kendo UI的较旧版本,如2014.1.528,应使用以下方法:
toolbar : [
{ template: kendo.template($("#preparedViewsToolbar").html()) },
{ name: "create", text : "My Add new record" },
{ name: "save", text: "My Save changes" },
{ name: "cancel", text: "My Cancel changes" }
],
这里修改了前面的JSFIDLE示例:如果使用最新版本的剑道UI,这非常容易。只需将数组中的消息定义为网格定义中的消息:
messages: {
commands: {
cancel: "My Cancel changes",
canceledit: "My Cancel",
create: "My Add new record",
destroy: "My Delete",
edit: "My Edit",
save: "My Save changes",
select: "My Select",
update: "My Update"
}
}
文件
对于可分组邮件,您应该执行以下操作:
groupable : {
messages: {
empty : "My Drag a column header and drop it here to group by that column"
}
},
文件
请看这里:
编辑:对于Kendo UI的较旧版本,如2014.1.528,应使用以下方法:
toolbar : [
{ template: kendo.template($("#preparedViewsToolbar").html()) },
{ name: "create", text : "My Add new record" },
{ name: "save", text: "My Save changes" },
{ name: "cancel", text: "My Cancel changes" }
],
前面的JSFIDLE示例修改如下:感谢您的帮助,不幸的是,它只适用于可分组的消息。对于命令消息,剑道版本为2014.1.528,有什么问题吗?我更新了代码示例的问题..问题是您正在使用的KendoUI版本。在我的答案中,使用()的KendoUI版本的JSFIDLE不起作用。你能更新它吗?问题是你正在使用的KendoUI版本。在我的答案中,您使用的KendoUI版本(JSFiddle.net/OnaBai/hb4yhco3/2)中的同一个JSFiddle不起作用。你能更新一下吗?如果没有,请检查“编辑我的答案”。谢谢您的帮助,不幸的是,它只适用于可分组的邮件。对于命令消息,剑道版本为2014.1.528,有什么问题吗?我更新了代码示例的问题..问题是您正在使用的KendoUI版本。在我的答案中,使用()的KendoUI版本的JSFIDLE不起作用。你能更新它吗?问题是你正在使用的KendoUI版本。在我的答案中,您使用的KendoUI版本(JSFiddle.net/OnaBai/hb4yhco3/2)中的同一个JSFiddle不起作用。你能更新一下吗?如果没有,请检查“编辑我的答案”。谢谢您的帮助,不幸的是,它只适用于可分组的邮件。对于命令消息,剑道版本为2014.1.528,有什么问题吗?我更新了代码示例的问题..问题是您正在使用的KendoUI版本。在我的答案中,使用()的KendoUI版本的JSFIDLE不起作用。你能更新它吗?问题是你正在使用的KendoUI版本。在我的答案中,您使用的KendoUI版本(JSFiddle.net/OnaBai/hb4yhco3/2)中的同一个JSFiddle不起作用。你能更新一下吗?如果没有,请检查“编辑我的答案”。谢谢您的帮助,不幸的是,它只适用于可分组的邮件。对于命令消息,剑道版本为2014.1.528,有什么问题吗?我更新了代码示例的问题..问题是您正在使用的KendoUI版本。在我的答案中,使用()的KendoUI版本的JSFIDLE不起作用。你能更新它吗?问题是你正在使用的KendoUI版本。在我的答案中,您使用的KendoUI版本(JSFiddle.net/OnaBai/hb4yhco3/2)中的同一个JSFiddle不起作用。你能更新一下吗?如果没有,请选中“编辑我的答案”。