RadMaskedTextbox Binding

3 posts, 0 answers
  1. Mike Dennis
    Mike Dennis avatar
    51 posts
    Member since:
    Mar 2006

    Posted 14 Nov 2007 Link to this post

    I have a RadMaskedTextbox that I would like to use for phone numbers, but a lot of the data in the database uses various formats.  Is there a field that has the bound value without the mask applied?  Numbers appear to be getting dropped from the Text property once the mast is applied.
  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 16 Nov 2007 Link to this post

    Hi Mike,

    You can set the mask dynamically in the code which, if I understood you correctly, should resolve the problem.

    Furthermore consider using a textbox if the mask is not absolutely needed.

    If these tips are not useful to you, please provide us with further information regarding your problem so we could understand it better and come up with a solution.

    Greetings,
    Pavel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mike Dennis
    Mike Dennis avatar
    51 posts
    Member since:
    Mar 2006

    Posted 19 Nov 2007 Link to this post

    Thanks, I ended up using a hidden Textbox, which have the value from the database.  When it is data bound, it will run my code for stripping certain characters from that value and adding that to the MaskedTextbox.  When it does an update, it will use the value from the MaskedTextbox.
Back to Top