Completed
Last Updated: 20 Feb 2017 13:03 by ADMIN
Imported User
Created on: 19 Sep 2013 15:36
Category: NumericTextBox
Type: Feature Request
12
Add option to limit decimal entry in NumericTextBox
The NumericTextBox currently has the ability to specify "decimals" - the number of decimal places allowed in the box. When a user types in a number with more decimal places than the box is configured for, the number gets rounded to the decimal precision.

What we'd like is to actually STOP the user from being able to type in more decimals than they're allowed. We don't want it to round; we want the user to just be disallowed from entering in a number that would be rounded.
4 comments
ADMIN
Petyo
Posted on: 20 Feb 2017 13:03
Please check the restrictDecimals configuration option:

http://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox#configuration-restrictDecimals
ADMIN
Telerik Admin
Posted on: 09 Apr 2015 14:42
Thanks for the feedback, I will channel it to our team.
Imported User
Posted on: 02 Apr 2015 00:45
I am surprised to learn the product doesn't already have this capability.  This is a show-stopper for financials.  Without this feature, I have to write my own control.
Steven
Posted on: 19 Mar 2015 17:37
I work in the Document Management Industry specifically with the process of collecting user input.  When collecting numeric data, we need to collect specifically what the user types and to prevent the user from typing in more data than what the field is specified for.  With the NumericTextBox, we need the option to turn off the rounding feature and to limit the input when the specified number of decimal places is reached (while the focus is still in the specified field).

For instance, if the field is specified to have 2 decimal places, the user input would be truncated when trying to type beyond that 2nd decimal place.  So, a value of 2.34 would be allowed. If a user typed 2.344, the value in the field would be stopped at 2.34; and, if a user typed 2.345, the value would still reflect 2.34.  As well, if a user continued to type input past the second decimal place, the value of the field would still show 2.34.