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

Decimal Entry Issue

3 Answers 532 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Koushik Reddy
Top achievements
Rank 2
Koushik Reddy asked on 05 Dec 2018, 07:30 AM

Hey there,

I'm facing the below three issues in the Demo site: https://www.telerik.com/kendo-react-ui/components/grid/editing/editing-in-cell/

1. On iPhone, the number keyboard doesn't provision for Decimal(.). So I'm not able to enter decimal values in the Unit field.

2. Rather then the iPhone, On the other devices, I wanted to enter ".1234" value in the Unit field, So after entering the ".1", the cursor was moved before to the number "1" instead of moving after the number "1". So I'm not able to enter ".123"  value in the Unit field.

3. In the Unit field, I'm not able to enter more than 3 digits after the decimal(ex: 0.1234).

3 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 05 Dec 2018, 11:43 AM
Hello, Koushik,

Regarding the issues:

1) This occurs because the type of the input is set to "tel" and iPhone is bringing the telephone keyboard. I have logged it in our repo:

https://github.com/telerik/kendo-react/issues/141

2) This is a known issue and I noticed that you have written there as well:

https://github.com/telerik/kendo-react/issues/130

3) The number of decimals is controlled based on the format and the default one is with 3 decimals.

In order to change the number, of decimals a custom NumeticTextBox has to be used as editor:

- How to change the format:

https://www.telerik.com/kendo-react-ui/components/inputs/numerictextbox/formats/#toc-formats

- How to add a custom editor:

https://www.telerik.com/kendo-react-ui/components/grid/editing/editing-custom/

Additionally, I updated your Telerik points for bringing this to our attention.

Regards,
Stefan
Progress 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
Koushik Reddy
Top achievements
Rank 2
answered on 05 Dec 2018, 01:38 PM

Hi Stefan,

Thanks for the feedback. 

I'm sorry, I haven't explained the 3rd issue clearly. The actual issue is, after the decimal when we enter 4th digit(greater than 4) the value is getting rounded off.

For ex: If we enter the value as "0.1234" in the Unit field, than the value is displaying as "0.123" but if we enter "0.1235" value in the Unit field then the value is displaying as "0.124".

 

Regards,

Koushik Reddy

 

0
Stefan
Telerik team
answered on 06 Dec 2018, 09:41 AM
Hello, Koushik,

This is expected as we round the number using the mathematical logic, that numbers with 5 and more in the decimal part are rounded to the next number.

Please have in mind that this will be observed for every number typed after the set decimal numbers. For example, if the decimals are set to 6 the number 0.1111116 will be rounded to 0.111112.

Regards,
Stefan
Progress 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
Tags
General Discussions
Asked by
Koushik Reddy
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Koushik Reddy
Top achievements
Rank 2
Share this question
or