Browser issue with RadNumericTextBox

2 posts, 0 answers
  1. Pravallika
    Pravallika avatar
    30 posts
    Member since:
    Mar 2014

    Posted 23 Feb 2015 Link to this post

    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.
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 25 Feb 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top