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

RadMaskedTextBox aligns text to the right when input is not entered completely

7 Answers 225 Views
Input
This is a migrated thread and some comments may be shown as answers.
rnoda
Top achievements
Rank 1
rnoda asked on 16 Apr 2008, 01:21 AM
Hi,

I have been using the RadMaskedTextBox to input telephone numbers with ext. and if the user does not type the extension, when the control looses the focus the value of the control is right aligned. I have even set the NumericRangeAlign to "Left" without any luck.

Here is the definition:

<

telerik:RadMaskedTextBox id="PhoneTextBox" runat="server" Skin="Office2007" Mask="(###) ###-#### x #####" DisplayMask="(###) ###-#### x #####" DisplayPromptChar=" " NumericRangeAlign="Left" />

I'm using Version Q1 2008 released 03/25/2008.

Thanks,
rnoda

7 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 16 Apr 2008, 12:14 PM
Hi rnoda,

I tried to reproduce the issue, using the provided code, but to no avail. Find attached a sample project, which works as expected and let us know what the difference in your case is. What is the culture that you use?

Best wishes,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rnoda
Top achievements
Rank 1
answered on 16 Apr 2008, 11:58 PM
Hi,

I'm using en-US as the culture.

One thing I noticed in your sample project though is that you are using the Telerik.UI.Web assembly for ASP.NET AJAX Extentions 1.0 for .NET 2.0. Your web.config file has:

System.Web.Extensions, Version=1.0.61025.0

Whereas I'm using the Telerik assembly for ASP.NET 3.5 which comes with the ASP.NET AJAX extensions built in.

System.Web.Extensions, Version=3.5.0.0

Could that be the difference in the behavior?

Actually, I got the same behavior even in the Live Demo sample site that comes with the Telerik Prometheus Beta controls:

http://localhost:8301/radcontrols_prometheus/Input/Examples/RadMaskedTextBox/DisplayFormat/DefaultCS.aspx

Just try entering the first 3 digits of the phone number and then press Tab to leave the input control.

Thanks,
Roberto.

0
Maria Ilieva
Telerik team
answered on 18 Apr 2008, 12:32 PM
Hi,

I tested the live example and was able to replicate this behaviour locally. Actually this is the logic of the RadNumericTextBox by design and this behavior could not be prevented. I will pass this request to our developers, so they could change this logic in some of the forthcoming releases.

Best wishes,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rnoda
Top achievements
Rank 1
answered on 18 Apr 2008, 01:40 PM
Hi Maria,

I'm not sure I'm following you. We were discussing the problem with the RadMaskedTextBox, not the RadNumericTextBox. I understand the Numeric one could have been designed to right align the contents. However the Masked control should not do it by default since it could be used to capture anything, not just numbers.

Again, I'm working with the RadMaskedTextBox.

Thanks,
Roberto.
0
Maria Ilieva
Telerik team
answered on 18 Apr 2008, 02:40 PM
Hi,

Sorry for the confusion. The explanation I posted was meant for RadMaskedTextBox, but was mistakenly typed NumericTextBox.
So once again the presented behaviour is by design for the RadMaskedTextBox control. I've already passed this request to our developers which should  take care of this. Your Telerik points have been updated.

Regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Pablo Tola
Top achievements
Rank 2
answered on 09 May 2008, 03:00 PM
I'm having the same problem, do you have a solution or workaround for this problem.

Thanks.
0
Sebastian
Telerik team
answered on 10 May 2008, 07:07 AM
Hi guys,

Unfortunately this issue is not addressed yet. I raised its priority and we will do everything possible to address it for the upcoming versions of RadMaskedTextBox. Unfortunately the fix will not make it for the Q1 2008 SP1 release, scheduled in the middle of the next week. Most probably it will appear for the Q1 2008 SP2 release.

We truly hope this is not a major show stopper for you.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Input
Asked by
rnoda
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
rnoda
Top achievements
Rank 1
Pablo Tola
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or