单元格内容选择对于数字文本框(内部处理为Kendo NumericTextBox控件)成功运行,但由于某种原因,它不适用于纯文本框列.随附的是jsfiddle演示问题:
http://jsfiddle.net/latenightcoder/TrJVK/86
这是网格设置中的重要代码:
edit: function (e) {
var input = e.container.find("input");
input.focus(function (e) {
console.log('focus');
setTimeout(function () {
input.select();
});
});
}
Run Code Online (Sandbox Code Playgroud)