In my grid I have a details template that has input fields bound to a model.
I want to enable the inline-edit mode of a grid ONLY when a user has a details list open and starts typing in an input filed. I tried the below method, but in order to enable the mode i need to call grid.editRow(grid.select()) twice, which makes no sense. Also, after the second editRow is called, i lose focus on the textbox i was typing in:
// Detect input keyin event
$('body').on('input', '.k-detail-cell .form-control:enabled', function () {
var grid = $(this)
.parents('.k-grid')
.data("kendoGrid");
// enable inline editing once typing has begun
if ($(".k-grid-edit-row").length <= 0) {
//grid.editRow(grid.select());
//grid.editRow(grid.select());
}
});