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
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.
That helps. In the eventhandler for BeforeExitEditMode I now check if the Cancelbutton focused
if (!ctrl.ParentForm.CancelButton.Focused)
{
// make validation
}