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

Bug with MaxValue of RadNumericTextBox?

2 Answers 82 Views
Input
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 05 Nov 2009, 09:38 AM
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 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 05 Nov 2009, 02:07 PM
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.
0
Marcel
Top achievements
Rank 1
answered on 05 Nov 2009, 02:34 PM
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.
Tags
Input
Asked by
Marcel
Top achievements
Rank 1
Answers by
Veli
Telerik team
Marcel
Top achievements
Rank 1
Share this question
or