Hi,
I use cellediting behaviour. If my grid contains more than one row I get the rowupdating event if the user switches from row to row. Sometimes my grid only contains a single record and I never receive a RowUpdating event.
Do you have a solution/workaround?
Roland
Hi Ronald,
You can trigger the update your cell in JS, when the user finishes editing the last cell, by handeling the ExitedEditMode client event, and doing the following in the event handler:
function exitedEditMode(grid, args){ var cell = args.getCell(); var column = cell.get_column(); var editBehavior = grid.get_behaviors().get_editingCore(); //.get_behaviors().get_cellEditing(); if (column.get_visibleIndex() == grid.get_columns().get_length() - 1) editBehavior.commit();}
Thanks,
Olga
I am just adding a very important piece to Olga's post here. You have to handle the server side rowupdated event (even without any code there) in order for the commit() method to work.
Ed