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
igGird - Row Edit Dialog - Done or Cancel

How can I tell if the user clicked done, or if the user clicked cancel? Can I do this in the 'rowEditDialogAfterClose' event? if so how?

  • 305
    Verified Answer
    Offline posted

    Hello William,


    Thank you for posting in our forum.


    The “rowEditDialogAfterClose” event doesn’t give you a way to access the event details you need, so what I would suggest is that you use the “editRowEnding” event instead - it gets raised after the user has finished the row editing process, but before applying the changes that were made to the grid. Its “ui” parameter provides you with references and information about the row update that is about to happen – the rowID, values, oldValues, and also the update variable, which is boolean and indicates if the row would be updated or not.

    In case the user has clicked the “Done” button, the value of ui.update would be “true”, otherwise, if the “Cancel” button has been clicked - ui.update would be “false.

    More detailed information about this event could be found here:


    If you need any additional assistance, feel free to contact me.