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:
Code behind:
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(); |
} |
} |
} |