Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8920
row updating behavior
posted

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.

whdg_TriBand.rar
Parents
No Data
Reply
  • 37874
    posted

    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.

Children