kendo ui如何为grid 整行添加点击事件,新手求教育
1个回答
2016-11-21 · 学高端技术就来八维教育
关注
展开全部
$("#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
});
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
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询