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

RadNumericTextBox Dont add auto digits, allows custom digits.

1 Answer 48 Views
Input
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 26 Sep 2014, 10:44 AM
Hi there:

Im currently using the RadNumericTextBox to let users enter a value that ranges from 5000, to 0,0001. 
Im using the NumericTextBox since it does not allow charecters etc, and i like that.

My issue is when a user enters 0,0001 the box formats it to: 0,00 .

And when the user inputs 5000 it formats it to 5.000,00.

I want the user input to be true and not automaticly alter their input.

In the event that my application needs to accept 12 digit whole IDs, i want the textbox to just have that (e.g 123456789876).
Not have it changed to: 123.456.789.876,00

If i set DecimalDigits to 0 it ofcourse wont allow me to enter digits.
If i set GroupSeparator to ="" . It removes the group seperators but still adds digits to the end..

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 29 Sep 2014, 03:34 PM
Hi Michael,

If you don't want to show the zeroes after the decimal separator, turn off the AllowRounding.
The markup below is based on your requirements.

<telerik:RadNumericTextBox runat="server" MaxValue="5000" MinValue="0.0001" MaxLength="9">
    <NumberFormat DecimalDigits="5" GroupSizes="9" AllowRounding="false" />
</telerik:RadNumericTextBox>


Regards,
Vasil
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Input
Asked by
Michael
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or