We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Mask only after leaving the field

I need set the mask only after leaving the field.

During typing the text should have no mask. Is there any way to do this?

1 Reply

VR Vignesh Ramesh Syncfusion Team August 6, 2019 03:36 PM UTC

Hi Laerte, 

Greetings from Syncfusion. 

We would like to inform that, the Masked text box is an advanced version of the Entry control that restricts your input to certain types of characters, text, and numbers using a mask pattern. If you want to validate the entered value while lost focus, then you need to change the ValidationMode property of SfMaskedEdit as per the below code snippet. 

[XAML]: 
<maskedEdit:SfMaskedEdit Watermark="000-0000000" 
                         ValidationMode="LostFocus" 
                         Mask="000-0000000" 
                         /> 
 

Please find the sample from the below link. 

If your requirement is different from this, please provide us more information and use-case scenario of your application. This would be helpful for us to give better solution. 

Regards, 
Vignesh. 


Loader.
Live Chat Icon For mobile
Up arrow icon