![](/img/trans.png)
[英]Kendo UI Grid: Unable to create custom grid editor that will add to datasource
[英]create custom editor window kendo js grid
我有一个网格,我希望能够在编辑时打开kendoWindow而不是标准弹出窗口。
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) {
},
});
},
我正在按照上面的代码进行操作,但是当editable是“ popup”时,它将获取我的自定义弹出窗口的html,但它还会打开默认的弹出窗口。 如果我将editable更改为true,则不会触发edit事件。 如何触发编辑事件并防止发生默认编辑事件?
尝试这样的可编辑内容:
{模式:“弹出”,模板:“您的模板”}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.