0

Here is the updated Fiddle to test. I am trying to setup grid with the in-line editing. Why saveRow method doesnt affect update function in transport definition and doesnt exit row from edit mode ?

Also please try to change var "can_edit" to false; Why this option doesn`t affect the field "day1"

Casufi
  • 57
  • 10

1 Answers1

0

If you debug your code for detecting the pressed key:

dataBound: function (o) {
    ...
    o.sender.element.delegate('tbody>tr', 'keypress', function (e, o) {
        if (!e.altKey && !e.ctrlKey && !e.shiftKey && e.key == "Enter") {
            if ($(".k-grid-edit-row").length > 0) {
                grid.saveRow();
            }
        }
    });
}

You will see that you never get to grid.saveRow(). Try using e.keyCode instead:

if (!e.altKey && !e.ctrlKey && !e.shiftKey && e.keyCode == 13) {
    ...
}
OnaBai
  • 40,767
  • 6
  • 96
  • 125