如何在ASP一个剑道格使用两种类型的编辑,同时避免不必要的弹出窗口创建 [英] how to Avoid the Unwanted popup window creation while Using two types of editing in a single kendo grid in asp

查看:182
本文介绍了如何在ASP一个剑道格使用两种类型的编辑,同时避免不必要的弹出窗口创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在用剑道电网..弹出的编辑工具栏和在线编辑的命令

$(K-电网弹出grid.element)。在(点击,函数(){结果
VAR popupWithOption = {结果
                  模式:弹出,结果
                模板:kendo.template($(#customPopUpTemplate)HTML())结果
                   窗口:{结果
                     标题:你的标题结果
                   } 结果
                }; 结果
grid.options.editable = popupWithOption; 结果
grid.addRow(); 结果
grid.options.editable =内联; 结果
});

$(".k-grid-popup", grid.element).on("click", function () {
var popupWithOption = {
mode: "popup",
template: kendo.template($("#customPopUpTemplate").html()),
window: {
title: "Your Title"
}
};
grid.options.editable = popupWithOption ;
grid.addRow();
grid.options.editable = "inline";
});

这code是工作的罚款,如果我点击编辑按钮并更新记录,然后我点击添加按钮意味着,2弹出窗口将打开,,如何限制这个问题。

This Code is Working Fine,,If i Click Edit button And Update the Record then i click add button means that 2 popup window will opened,, How to Restrict this Problem

在此先感谢..

推荐答案

与编辑的设置的问题是,既然你已经在你的网格设置弹出的编辑,每次执行编辑命令将打开弹出窗口。

the problem with the editable settings is that since you have set up popup edit in your grid, every time you execute an edit command will open the popup window.

要达到你所寻找的,你应该建立内联芯编辑和功能,然后进行编辑您的自定义命令创建自己弹出来编辑就行了。

To achieve the functionality you are looking for, you should set up "inline-cell" edit and then with your custom command for edit create your own popup to edit the line.

您不能兼得内联和弹出编辑默认剑道格。

You can't have both inline and popup edit by default in kendo grid.

问候

这篇关于如何在ASP一个剑道格使用两种类型的编辑,同时避免不必要的弹出窗口创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆