Hi,
I have a UltraTextEditor without any propertys set. The editor is bound to a string property of an object.
If I click in the text box and then click somewhere else, the text box loses his focus as expacted. If I click into the text box, type some text in there and remove the text after that, I can not lose the focus.
I already registered the "BeforeExitEditMode" - event to ensure that the "Cancel" flag of the eventargs is false but it doesn't work.
Has someone an idea?
thanks for the reply....nope i am not handling any events...even maskvalidationerror event too..
can u post the sample u tried plz...
Thanks,
Another reason that you might not be able to leave the cell is if the control is data bound and the underlying data source field cannot accept a partial value.
The '9' character specifies that entry is not required, so the control should not be forcing focus to be retained. Are you handling the Validating event? I tried this out in a quick test and I could enter "(999) 9" and I could properly set focus to another control on the form. You could also check to see if the MaskValidationError event is firing.
-Matt
i am also having the focus issue, but in different case....
i am using ultramaskededit control for phone masking.....the focus is not moving to out of the control when there is partial text of the masked format..
eg: the phone format is (999) 999-9999 but if i give (999) 9 and tried to leave the field i am not able to leave...focus remains in the maskededit control....how can i rid off?
Yes, you are right. The databinding was the problem. I have bound the "Value" property to the string. Now I have changed the binding to the "Text" property and it works. Tanks a lot.