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);
});