kendo ui 单元格编辑后网格 batchedit 触发事件
kendo ui grid batchedit fire event after in cell edit
我已经创建了带有远程绑定数据源的网格。我用过批量编辑。一栏有金额。我想要一个事件 - 在单元格数量更新后被触发。我尝试使用 DataSource 的更改事件,但它没有被触发。
您可以在定义网格时使用编辑事件,然后定义 blur 以在离开和结束编辑单元格后执行某些操作,或定义 keyup 以对输入中的每次键入执行操作。
例如:
$("#personel").kendoGrid({
dataSource: dataSource,
navigatable: true,
toolbar: ["create", "cancel"],
columns:gridColumns,
editable: "incell",
edit: function(e) {
var input = e.container.find(".k-input");
input.blur(function() {
.... your code ....
});
input.keyup(function(e) {
.... your code ....
});
}});
我已经创建了带有远程绑定数据源的网格。我用过批量编辑。一栏有金额。我想要一个事件 - 在单元格数量更新后被触发。我尝试使用 DataSource 的更改事件,但它没有被触发。
您可以在定义网格时使用编辑事件,然后定义 blur 以在离开和结束编辑单元格后执行某些操作,或定义 keyup 以对输入中的每次键入执行操作。
例如:
$("#personel").kendoGrid({
dataSource: dataSource,
navigatable: true,
toolbar: ["create", "cancel"],
columns:gridColumns,
editable: "incell",
edit: function(e) {
var input = e.container.find(".k-input");
input.blur(function() {
.... your code ....
});
input.keyup(function(e) {
.... your code ....
});
}});