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

Browser issue with RadNumericTextBox

1 Answer 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pravallika
Top achievements
Rank 1
Pravallika asked on 23 Feb 2015, 06:13 AM
Hi All,

I have a browser issue with RadNumericTextBox whenever i use MaxLength property. Below is the scenario

My Code
<telerik:RadNumericTextBox ID="xyz" runat="server" MaxLength="9">
 <NumberFormat DecimalDigits="3" GroupSeparator="" />
</telerik:RadNumericTextBox>


In IE Browser :

If i enter maxlength value (ex: 123456789), once it loses the focus, then the value has been updated to (ex: 123456789.000) and taking the count of the value as
(entered 9 chars + 4 added chars(.000) = 12).
now the problem is, its exceeding the MaxLength value and showing an error i.e. "you must enter text with 9 or fewer chars" on MouseOver and finally i couldn't save.

In Chrome & Firefox Browsers :

If i enter maxlength value (ex: 123456789), once it loses the focus, then the value has been updated to (ex: 123456789.000) and taking the count of the value as
(entered 9 chars = 9). here its working fine and i can save also.

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 25 Feb 2015, 08:51 AM
Hello Pravallika,

Please use MinValue and MaxValue for your NumericTextBox instead of the MaxLength.

Regards,
Vasil
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Pravallika
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or