2013-08-16 2 views
1

은 검도 표 편집 팝업과 편집 버튼 모두에서 버튼을 사용자 정의하는 데 도움이 필요합니다.검도 표 편집 버튼의 버튼 사용자 정의

내가 명령

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" 
      } 
     } 
     ] 

이것은 해결책입니다!

관련 문제