基于条件的Kendo网格编辑 [英] Kendo Grid Editing based on condition
本文介绍了基于条件的Kendo网格编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须根据条件编辑一些列.我在onEdit(e)函数上使用了this.closeCell().在kendo.all.min.js文件中获取模板未定义的错误.
Hi,
I have to edit few columns based on condition. I have used this.closeCell() on onEdit(e) function. Getting template undefined error in kendo.all.min.js file.
function onEdit(e) {
var grid = $("#searchDetails").data("kendoGrid");
var currentDataItemZipCode = e.model.ZipCode;
var currentDataItemCsgType = e.model.CSGTypeDescription;
var currentDataItemMilkrunCode = e.model.MilkrunCode;
$("#hdnCSGType").val(currentDataItemCsgType);
$("#kZipCode1").data("kendoAutoComplete").value(currentDataItemZipCode);
$("#kUpdateMilkrunTerritoryCodes").data("kendoComboBox").text(currentDataItemMilkrunCode);
if (e.container.find("input[name=kUpdateMilkrunTerritoryCodes]").length > 0) {
this.closeCell();
}
}
以上是我的onEdit(e)函数.
请帮助我解决此问题.
谢谢&问候,
Jyothi
Above is my onEdit(e) function.
Please help me to resolve this issue.
Thanks & Regards,
Jyothi
推荐答案
(" ).data(" ); var currentDataItemZipCode = e.model.ZipCode; var currentDataItemCsgType = e.model.CSGTypeDescription; var currentDataItemMilkrunCode = e.model.MilkrunCode;
("#searchDetails").data("kendoGrid"); var currentDataItemZipCode = e.model.ZipCode; var currentDataItemCsgType = e.model.CSGTypeDescription; var currentDataItemMilkrunCode = e.model.MilkrunCode;
(" #hdnCSGType").val(currentDataItemCsgType);
("#hdnCSGType").val(currentDataItemCsgType);
( #kZipCode1").data( kendoAutoComplete").值 (currentDataItemZipCode);
("#kZipCode1").data("kendoAutoComplete").value(currentDataItemZipCode);
这篇关于基于条件的Kendo网格编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文