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

[Solved] RadMaskedTextBox DisplayMask Causes Script Error

1 Answer 143 Views
Input
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 15 May 2008, 04:29 PM

Consider the following RadMaskedTextBox:

<
rad:RadMaskedTextBox ID="radMaskedRateAdjustment" runat="server" DisplayMask="<|->#.####" DisplayPromptChar="" Mask="<|->#.####" MaxLength="5" NumericRangeAlign="Left" PromptChar=" " ResetCaretOnFocus="True" TextWithLiterals="-."  Text='<%# DataBinder.Eval( Container, "DataItem.RateAdjustment") %>' LabelCssClass="radLabelCss_Default" Skin="" Width="125px">   </rad:RadMaskedTextBox>

When I set the DisplayMask as indicated, I get the following, in a pop-up box with Yes/No buttons:

Stop running this script?

A script on this page is causing Internet Explorer to run slowly.  If it continues to run, your computer may become unresponsive.


When I change the DisplayMask to "#.####", the error stops appearing.

I need the <|-> so that a negative sign is allowed.

Can anyone help?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 19 May 2008, 01:18 PM
Hi Charles,

I tested the described scenario and was able to replicate the error locally. Actually the reason for the error is that this particular mask is generating a script for handling the different mask variation and this is causing the issue. I already logged this problem in our bug system to research it further and hopefully provide a solution for it.

I hope this is not a show stopper for you. Please excuse us for the inconvenience.

Best regards,
Maria Ilieva
the Telerik team

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