MaskedTextBox not masking input

Thread is closed for posting
2 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. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 04 Jun 2013 Link to this post

    Hello Dan,

    This bug is already resolved, please upgrade to newer version of our controls. You can test it here:
    http://demos.telerik.com/aspnet-ajax/input/examples/radmaskedtextbox/firstlook/defaultcs.aspx

    Regards,
    Vasil
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top