1 $("#grid").kendoGrid({ 2 ... 3 editable: { 4 mode: "popup", 5 template: kendo.template($("#editTemplate").html()), 6 //window: { 7 // title: "信息维护" 8 //}, 9 confirmation: true, 10 confirmDelete: "Yes", 11 }, 12 edit: function (e) { 13 var editWindow = e.container.data("kendoWindow"); 14 $("a.k-grid-cancel")[0].innerHTML = "<span class=‘k-icon k-i-cancel‘></span>取消"; 15 if (e.model.isNew()) { 16 editWindow.title(‘新建‘); 17 $("a.k-grid-update")[0].innerHTML = "<span class=‘k-icon k-i-check‘></span>保存"; 18 } 19 else { 20 editWindow.title(‘编辑‘); 21 $("a.k-grid-update")[0].innerHTML = "<span class=‘k-icon k-i-check‘></span>更新"; 22 23 } 24 } 25 });