Attached sample site. It has a client event for row updating : whdg_Editing_RowUpdatingType2
it checks if one of the fields is empty and cancel if it is ( eventArgs.set_cancel(true);) The problem is it that it reverts value and leaving to the row pointed by mouse...
Is it possible to modify behavior so that user can not leave the row until it is in the good shape, in this particular case until PartnerLE value is entered.
Too see this behavior, run the site open child grid for the row #9 , it has empty rows, modify youMrc column on the empty row and try leave it by clicking another row. It would give error message and revert edited value. The behavior that I need to achieve is that it would not leave the row until PertnerLE value entered.
Thanks.
Hello mcseidel,
I would suggest you to handle the CellEditing behavior's ExitingEditMode client-side event, instead of RowUpdating. Cancelling this event won't let the user exit edit mode of the currently edited cell.
Let me know if this helps.
Yes, but on the cell level I would not know what will happen to other cells, I have actually four cells that I need to make sure not empty... so I need row level validation.