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
240
BeforeExitEditMode and click on cancel button
posted

Hi,

I make some validation in BeforeExitEditMode Eventhandler (UltraTextEditor), that works normally fine for me. But when the user click the cancel button on a form the eventhandler is also fired.  Is there a way to prevent this. With esc key it works.

 

Thanks

   Joachim

Parents
  • 71886
    Verified Answer
    Offline posted

    Hello Joachim,

    You could do a check and if passed then run your code, example(if cancel button is named ultraButton1):

                if (ultraButton1.Focused)
                {
                    //code goes here
                }
    

     

     Please feel free to let me know if I misunderstood you or if you have any other questions.

Reply Children
No Data