0
我有一个按钮,当您单击它时,将抓取该列中下一个值的值。到目前为止,还没有能够使其工作。如何获得Kendo Grid的列中的下一个项目
$('#next').on('click', function (e) {
var grid = $("#grid").data("kendoGrid"),
idx = $(e.target).closest("tr").index() + 3, // this starts at row 1
dataItem = grid.dataItem("tr:eq(" + idx + ")"), // this grabs the data items
dataItemTotal = dataItem.evalCriteria; // this grabs the value of the selected column and row.
var test = $(dataItemTotal).next(dataItem); // im trying to get the next (evalCriteria) in the next row.
console.log(test);
});