2013-08-16 113 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" 
      } 
     } 
     ] 

這是解決方案!

相關問題