需要有关在kendo网格编辑弹出窗口和编辑按钮中自定义按钮的帮助。
如果我自定义命令的编辑按钮
columns = [
{ field: "desc_iva", title: "Descrizione", width: 45 },
{ field: "codice_iva", title: "Codice", width: 45 },
{ field: "imposta", title: "imposta", width: 45 },
{ field: "indetr", title: "Indetr", width: 45 },
{ field: "note", title: "Note", width: 45 },
{ field: "predefinito", title: "Pred.", width: 45 },
{
command: [{
name: "destroy",
text: "Elimina"
},
{
name: "edit",
text: "Customited text"
}
]
}
];
我无法将按钮文本更改为编辑弹出窗口,如果我在弹出窗口中自定义“更改”和“更新”按钮...
columns = [
{ field: "desc_iva", title: "Descrizione", width: 45 },
{ field: "codice_iva", title: "Codice", width: 45 },
{ field: "imposta", title: "imposta", width: 45 },
{ field: "indetr", title: "Indetr", width: 45 },
{ field: "note", title: "Note", width: 45 },
{ field: "predefinito", title: "Pred.", width: 45 },
{
command: [{
name: "destroy",
text: "Elimina"
},
{
name: "edit",
text: {
title: "adsfg",
update: "Aggiorna",
cancel: "Cancella"
}
}
]
}
];
无法更改编辑按钮。
答案 0 :(得分:2)
command: [{
name: "destroy",
text: "Elimina"
},
{
name: "edit",
text: {
edit: "Modifica",
update: "Aggiorna",
cancel: "Cancella"
}
}
]
这是解决方案!!!