我有一个网格,我希望能够在编辑时打开kendoWindow而不是标准弹出窗口。创建自定义编辑器窗口kendo js grid
editable: "popup",
edit: function (e) {
e.preventDefault();
console.log("EDIT");
$.ajax({
url: '@Url.Action("EditProductView", "Product")',
type: 'POST',
dataType: 'html',
cache: false,
success: function (data) {
console.log(data);
$("edit-product-window").kendoWindow({
content: data,
title: "Product"
});
},
error: function (xhr, error) {
},
});
},
我做它像上面的代码,但是当编辑的是“弹出”它得到的HTML为我的自定义弹出,但它也打开了默认的弹出窗口。如果我将可编辑更改为true,则不会触发编辑事件。我怎样才能触发编辑事件,并防止默认的编辑事件发生?