I thought the following script in a grid would stop adding a new row when the user tabs out of the last field in a grid with inline editing, but alas, it does not seem to work.
config.edit = function(e) {
if (e.model.isNew()) {
debugger;
var grid = e..sender;
grid.cancelChanges();
}
}
I tried the:
parser.m_doNotAddNewOnTab=true
which DOES stop adding a new row, but then, the record is not saved and on the last row, the cursor will tab through all of the columns on the grid (instead of just the editable ones that works on all other rows. This change of behavior will confuse my users.
Just like all of the other rows, I need the record saved when the user tabs out of the last editable field in a grid row.
Any suggestions?
Thanks
Bruce