This is a migrated thread and some comments may be shown as answers.
Numeric textbox changing value automatically to 10 000 000 000 000 000, 00 when enter 9 999 999 999 999 999, 99
3 Answers 7 Views
This is a migrated thread and some comments may be shown as answers.
Fady
Top achievements
Rank 1
Fady asked on 29 Dec 2015, 09:30 AM
We are facing an issue with Kendo numeric textbox.

In numeric textbox, when user tries to enter the value as “9 999 999 999 999 999, 99”, it automatically converts to “10 000 000 000 000 000, 00”.
The converted value is passed to model also.
We have an requirement to restrict user to allow enter values up to “9 999 999 999 999 999, 99”.

Kindly check and provide your feedback.

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 29 Dec 2015, 02:02 PM
Hello Fady,

The behavior that you are describing is related to the JavaScript Number object, used by the NumericTextBox, which loses precision after 16 digits. You can test the following simple scenario, which will demonstrate the same result:
var number = -9999999999999999.99;
alert(number);

You could find detailed information on the Number object in the following link:

Best Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Fady
Top achievements
Rank 1
answered on 07 Jan 2016, 11:56 AM

Thanks for the reply.

 

Is there any solution available to this issue?

0
Konstantin Dikov
Telerik team
answered on 11 Jan 2016, 08:14 AM
Hi Fady,

Since the widget is using the JavaScript Number object, there is no workaround that could be used. The only thing that could be suggested for your requirement is to use a standard input that will allow the user to enter any string value that you could then handle manually.


Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Fady
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Fady
Top achievements
Rank 1
Share this question
or