Hi!
I use a grid with incell edit option. I try to set focus and edit the next cell with tab key pressed on prev.
$('#grid div table tr td input').live('keydown', function(event) {
if (event.which == 9) {
var grid = $("#grid").data("kendoGrid");
var $td = $(this).parent();
grid.editCell($td.next());
}
});
something like this.
But in this case old input is not closed.
I try new code
$('#grid div table tr td input').live('keydown', function(event) {
if (event.which == 9) {
var grid = $("#grid").data("kendoGrid");
var $td = $(this).parent();
grid.closeCell();
grid.editCell($td.next());
}
});
In this case old input closes, but entered value doesn't saved in a cell.
How can I edit next cell with correct close previous input?
I use a grid with incell edit option. I try to set focus and edit the next cell with tab key pressed on prev.
$('#grid div table tr td input').live('keydown', function(event) {
if (event.which == 9) {
var grid = $("#grid").data("kendoGrid");
var $td = $(this).parent();
grid.editCell($td.next());
}
});
something like this.
But in this case old input is not closed.
I try new code
$('#grid div table tr td input').live('keydown', function(event) {
if (event.which == 9) {
var grid = $("#grid").data("kendoGrid");
var $td = $(this).parent();
grid.closeCell();
grid.editCell($td.next());
}
});
In this case old input closes, but entered value doesn't saved in a cell.
How can I edit next cell with correct close previous input?