I have a grid use Kendo Grid. When i custom edit event and add event to input in edit mode like this
edit: function (e) {
if (e.container[0]) {
var cell = e.container[0]
$rootScope.rowToFocus = angular.element(cell).closest('tr').index();
$rootScope.colToFocus = e.sender.cellIndex(angular.element(cell).closest('td'));
if ($rootScope.rowToFocus != 0 || $rootScope.colToFocus != 0) {
$rootScope.gridToFocus = e.sender;
e.container.find("input").on("keydown", function (ev) {
if (ev.which == 9 || ev.which == 13) {
$rootScope.isKeyboard = true;
ev.preventDefault();
}
})
}
else {
$rootScope.rowToFocus = undefined;
$rootScope.colToFocus = undefined;
}
}
},
So i prevented default of tab event but aslo prevent update the data i input in this... Please help me a solution to prevent tab event in my input and still raise the update data event when i leave this cell.