kendo ui如何为grid 整行添加点击事件,新手求教育

2025-03-26 10:55:23
推荐回答(1个)
回答1:

$("#batchgrid").on("click", "td", function (e) {

var rowIndex = $(this).parent().index();
var cellIndex = $(this).index();

console.info("进入CLICK事件");
console.info("rowIndex : " + rowIndex + " -- cellIndex" + cellIndex);

$('.k-edit-field .textbox .k-input').on('keypress', function (e) {
console.info("XXXXXXXXXXX");
if(event.keyCode == 13)
$('.k-edit-field .textbox .k-input').next().focus();
//This statement will be used where you want to provide focus
});