Hello,
I am having a RadNumeric textbox to enter only numbers. I dont want allow user to enter more than 2 digits after decimal.
Here is my code. It is allowing more than 2 digits after decimal but it is rounding off to 2 digits after coming out of textbox.
I dont want user to allow more than 2 right away.
<telerik:RadNumericTextBox ID="txtNewPrice" runat="server" MaxLength="10" AutoCompleteType="None" MinValue="0" CssClass="txtException"
Width="50px" Type="Number" ShowSpinButtons="false" AllowOutOfRangeAutoCorrect="false" InvalidStyle-Font-Bold="true">
<NumberFormat AllowRounding="false" DecimalDigits="2" KeepNotRoundedValue="true" GroupSizes="3"/>
</telerik:RadNumericTextBox>
I am having a RadNumeric textbox to enter only numbers. I dont want allow user to enter more than 2 digits after decimal.
Here is my code. It is allowing more than 2 digits after decimal but it is rounding off to 2 digits after coming out of textbox.
I dont want user to allow more than 2 right away.
<telerik:RadNumericTextBox ID="txtNewPrice" runat="server" MaxLength="10" AutoCompleteType="None" MinValue="0" CssClass="txtException"
Width="50px" Type="Number" ShowSpinButtons="false" AllowOutOfRangeAutoCorrect="false" InvalidStyle-Font-Bold="true">
<NumberFormat AllowRounding="false" DecimalDigits="2" KeepNotRoundedValue="true" GroupSizes="3"/>
</telerik:RadNumericTextBox>