This is a migrated thread and some comments may be shown as answers.

any idea of Mask for phone number

1 Answer 100 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
qwer
Top achievements
Rank 1
qwer asked on 06 Jul 2011, 01:40 AM
Hi There,
        How do you guys achieve of showing correctly for phone number.
I've long time issue with RadMaskedTextBox (link).

Here is my scenario
MaskedTextInput  
Mask = "+###(###)########"

so user can type whatever they like.
eg. +__1 (__2)_3456780 or +1__(2__)123_____  or +___(_02)123__678 

but new MaskedTextInput control has only value property so save into the db as only value
123456780 , 12123 , 02123678
then when showing back into control we got problem as
+123 (456)780______ ,  +121(23)________ , +021(236)78________

we want what user type exactly as
+__1 (__2)_3456780, +1__(2__)123_____  , +___(_02)123__678   when showing back on screen.

I'm using MVVM with 2011_1_0419
Any idea to achieve this?

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 08 Jul 2011, 02:49 PM
Hello Qwer,

Please have a look at the sample I attached in the forum post and let me know if it works for you.

Greetings,
Tina Stancheva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
qwer
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or