Bug with MaxValue of RadNumericTextBox?

3 posts, 0 answers
  1. Marcel
    Marcel avatar
    21 posts
    Member since:
    Jun 2008

    Posted 05 Nov 2009 Link to this post

    When I set the MaxValue property of a RadNumericTextBox to a number with 2 digits, for example 401.33, I'am only allowed to set the Value to 401 and not to 401.33. It seems that MaxValue is rounded to 401.

    This seems to be a bug. Is this a known problem?

    In the example below entering 401.33 as value is not allowed.

    Asp.Net page:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NumericTextBox.aspx.cs" Inherits="WebApplication.NumericTextBox" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server">  
        <title></title>  
    </head> 
    <body> 
        <form id="form1" runat="server">  
        <div> 
        <telerik:RadScriptManager ID="radScriptManager" runat="server"></telerik:RadScriptManager> 
        <telerik:RadNumericTextBox runat="server" ID="radNumericTextBox" NumberFormat-DecimalDigits="2" Type="Number" MaxValue="401.33"></telerik:RadNumericTextBox> 
        <asp:Label ID="label" runat="server"></asp:Label> 
        <asp:Button ID="button" runat="server" /> 
        </div> 
        </form> 
    </body> 
    </html> 

    Code behind:

        public partial class NumericTextBox : System.Web.UI.Page  
        {  
            protected void Page_Load(object sender, EventArgs e)  
            {  
                if(Page.IsPostBack)  
                {  
                    label.Text = radNumericTextBox.Value.ToString();  
                }  
            }  
        } 
  2. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 05 Nov 2009 Link to this post

    Hello Marcel,

    I cannot reproduce the misbehavior with the latest version of RadNumericTextBox. I am using the exact same markup you provided. Seems to work OK. Attaching video to demonstrate.

    Greetings,
    Veli
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Marcel
    Marcel avatar
    21 posts
    Member since:
    Jun 2008

    Posted 05 Nov 2009 Link to this post

    Hello Veli,

    Thanks for your investigation. We currently using version 2009.1.311.35. I will try the latest version of the controls.

    Regards,

    Marcel.
Back to Top