2
我用belowe代码来获得选择的代码,但我需要得到当前行的索引来上下移动ABD,我怎样才能得到selecetd项目的行索引: 我的代码:我怎样才能得到指数selectedRow剑道UI
$("#btnup").click(function() {
var grid = $("#grid").data("kendoGrid");
var selectedItem = grid.dataItem(grid.select());
if (selectedItem != undefined) {
alert("The Row Is SELECTED");
// here need row index
}
else
alert("NO Row Is SELECTED")
});