Declined
Last Updated: 22 Jan 2020 16:27 by ADMIN
Manjula
Created on: 21 Jan 2020 17:14
Category: Kendo UI for Angular
Type: Bug Report
0
Kendo-numerictextbox and lost focus (blur) event value change issue

HI

When i input a value with 11111111111111111 on  kendo-numerictextbox and  lost focus (blur) event the value is always change to 11111111111111112 .Any solution  to prevent this issue ?.

https://stackblitz.com/run/?file=app%2Fapp.component.ts

 <kendo-numerictextbox
            [spinners]="false"
            [value]="value"
        ></kendo-numerictextbox>
1 comment
ADMIN
Dimiter Topalov
Posted on: 22 Jan 2020 16:27

Hi Manjula,

The greatest integer that can be handled reliably by JavaScript is 9007199254740991 (Number.MAX_SAFE_INTEGER):

https://stackoverflow.com/questions/307179/what-is-javascripts-highest-integer-value-that-a-number-can-go-to-without-losin

As 11111111111111111 is greater than this greatest safe integer, using it is not supported and will likely cause unexpected behavior and results.

The developer can limit the user input in the NumericTextBox via its min and max options to avoid such issues:

https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/precision/#toc-value-ranges

As this is not an issue on our end, but rather a language-specific limitation, I will close this public thread.

Please do not hesitate to open a regular support thread if you have further or other questions related to using the Kendo UI for Angular components.

Regards,
Dimiter Topalov
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.