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

How to create Masked Text Box?

I'm trying to use the sfMaskedEdit box but I'm finding the documentation lacking. I want my text box to only accept numbers and a comma so the following can be entered:

  • 1
  • 1122123,13132,541324
  • 1,1,2,7
  • etc...
I tried something like 

   <syncfusion:SfMaskedEdit x:Name="FieldTeamTextBox"
                          Grid.Column="1"
                          MaskType="RegEx"
                          Mask="[0-9]+(,[0-9]+)*"
                          FontSize="14" TextAlignment="Center" Margin="10,5"
                          Grid.Row="1"
                          Text="{Binding FieldTeamText, Mode=TwoWay}"/>

But all it lets me do is put it one number and then the invalid red popup occurs. The regex works on regexpal.com .

Also, it sometimes causes the app to crash when I hit the backspace while editing the textbox. Could the documentation be updated with more in depth examples of accepted regexs?

3 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team April 21, 2015 12:58 PM UTC

Hi Ebsan,

A support incident will be created under your account to track the details for the reported query in this forum. Please log on to our support website to check for further updates:

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let us know if you have any other questions.

Regards,
Vijayalakshmi V.R.


EU Ebsan Uddin replied to Vijayalakshmi Roopkumar April 22, 2015 01:12 AM UTC

Hi Ebsan,

A support incident will be created under your account to track the details for the reported query in this forum. Please log on to our support website to check for further updates:

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let us know if you have any other questions.

Regards,
Vijayalakshmi V.R.

I'm sorry but I don't see a support incident on my account.


VR Vijayalakshmi Roopkumar Syncfusion Team April 22, 2015 04:49 AM UTC

Hi Ebsan,

We are sorry for the incorrect update posted previously. We request you to log on to our support website to check further updates for the incident created under your account now:

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let us know if you have any other questions.

Regards,
Vijayalakshmi V.R.

Loader.
Up arrow icon