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

RadMaskedTextBox Not Masking Input

2 Answers 41 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Trance4Lyfe
Top achievements
Rank 1
Trance4Lyfe asked on 30 May 2013, 08:29 PM
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 Answers, 1 is accepted

Sort by
0
Trance4Lyfe
Top achievements
Rank 1
answered on 31 May 2013, 06:05 PM
Update: It works outside of a RadGrid, but inside, it doesn't work.
0
Kostadin
Telerik team
answered on 04 Jun 2013, 11:58 AM
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.
Tags
Ajax
Asked by
Trance4Lyfe
Top achievements
Rank 1
Answers by
Trance4Lyfe
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or