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

Restrict digits after decimal in RadNumericTextbox

1 Answer 217 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Atchut
Top achievements
Rank 1
Atchut asked on 24 May 2012, 02:11 AM
Hello,

I dont want user to enter more than 2 digits after decimal.

How can I do this in Rad NUmeric textbox ?

TIA

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 May 2012, 05:29 AM
Hello Atchut,

If you want to limit the value of the control you can use the MaxValue property. Here is the sample code.
aspx:
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" MaxLength="5"    >
<NumberFormat DecimalDigits="2" DecimalSeparator="." AllowRounding="false"   />
</telerik:RadNumericTextBox>

Thanks,
Shinu.
Tags
Grid
Asked by
Atchut
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or