any idea of Mask for phone number

2 posts, 0 answers
  1. qwer
    qwer avatar
    18 posts
    Member since:
    Oct 2010

    Posted 05 Jul 2011 Link to this post

    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
    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?
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 08 Jul 2011 Link to this post

    Hello Qwer,

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

    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!

Back to Top