2013-08-16 111 views
1

需要关于在kendo网格编辑弹出框和编辑按钮中定制按钮的帮助。定制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" 
       } 
      } 
      ] 
     } 
]; 

无法更改编辑按钮。

回答

2
command: [{ 
      name: "destroy", 
      text: "Elimina" 
     },     
     { 
      name: "edit",     
      text: { 
       edit: "Modifica", 
       update: "Aggiorna", 
       cancel: "Cancella" 
      } 
     } 
     ] 

这是解决方案!

相关问题