0
當我插入新記錄(創建)時,我可以讀取服務器的響應並使用新的skillId更新網格。Kendo UI更新網格編輯數據
爲了能夠執行更新(編輯)功能,我需要找到正在編輯哪一行以更新skillId。 如何確定哪一行正在更新?無論如何我還是無法找到。
create: {
url: "/admin/SkillProfessionCreate",
contentType: "application/json",
accepts: "application/json",
type: 'POST',
complete: function (e) {
var professionSkill = $.parseJSON(e.responseText);
var dataItem = dataSource.at(0);
dataItem.sklId = professionSkill.skillId;
$("#kendo").data("kendoGrid").refresh();
}
},
update: {
url: "/admin/SkillProfessionUpdate",
contentType: "application/json",
accepts: "application/json",
type: 'POST',
complete: function (e) {
-- how to determine the row being update here?
}
},