RadMaskedTextBox Not Masking Input

3 posts, 0 answers
  1. Dan
    Dan avatar
    3 posts
    Member since:
    May 2013

    Posted 30 May 2013 Link to this post

    First of all, I'm using a RadMaskedTextBox inside of the Edit Template of a Radgrid.  SelectionOnFocus is set to "SelectAll" but that doesn't seem to be working. When I type in numbers, it doesn't replace the mask, but overwrites it instead.

    For example, the mask I have is "xx-xxx-xxxx".  So it looks like this in the textbox: __-___-____   However, when I place the cursor at the beginning and type, it shows something like: 353435__-___-____ or _34343_-___-____.   I am creating this textbox at Design Time.  I've read the RadControls for ASP.NET AJAX  documentation, but it doesn't seem to help with this problem.  Any suggestions? Thanks.

     

    <EditItemTemplate>

     

    <telerik:RadMaskedTextBox ID ="_tbLocationNumberMasked" runat="server"

    Mask="##-###-####" SelectionOnFocus="SelectAll" >
    </EditItemTemplate>




    Using Visual Studio Extensions for RadControls for ASP.NET AJAX  Version 2011.1.519.0
  2. Dan
    Dan avatar
    3 posts
    Member since:
    May 2013

    Posted 31 May 2013 Link to this post

    Update: It works outside of a RadGrid, but inside, it doesn't work.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 04 Jun 2013 Link to this post

    Hello Dan,

    I was not able to replicate the issue on my side. I prepared a small sample and attached it to this thread. Could you please give it a try and let me know how it differs from your real setup?

    Regards,
    Kostadin
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top