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

MaskedTextBox not masking input

1 Answer 86 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Trance4Lyfe
Top achievements
Rank 1
Trance4Lyfe asked on 31 May 2013, 12:00 AM
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

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 04 Jun 2013, 12:17 PM
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.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Trance4Lyfe
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or