我目前将剑道网格A的数据设置为剑道网格B.但我遇到cannot read property 'closest' of undefined in kendo grid
请帮帮我..
这是kendo B按钮onclick的代码
$("#add-Resources").click(function () {
var gridModal = $("#resourcesGrid").data("kendoGrid");
var selectedItemModal = gridModal.dataItem(gridModal.select());
var grid = $("#tblDelivery").data("kendoGrid");
var dataItem = grid.dataItem(grid.current().closest("tr"));
dataItem.set("Resource", selectedItemModal.Name);
//alert(selectedItemModal.Name);
$('#resources_modal').modal('toggle');
});