Unplanned
Last Updated: 14 Apr 2021 10:01 by ADMIN
Robin
Created on: 08 Apr 2021 12:06
Type: Bug Report
0
Can't enter negative value in numeric Grid Column using SV locale

Step by step instructions on how to reproduce the problem

Try entering a negative value in the filter column using the StackBlitz example here https://stackblitz.com/edit/react-dx7cna?file=app/main.jsx

 

This works using "ES" as locale (your example) https://stackblitz.com/run/?file=app/main.jsx

 

Github issue here https://github.com/telerik/kendo-react/issues/897

 

3 comments
ADMIN
Stefan
Posted on: 14 Apr 2021 10:01

Hello, Robin,

Thank you for the details.

After a discussion in the team, we agree to open an improvement for this case and similar cases, where we will handle the standard minus symbol as valid:

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

Regards,
Stefan
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Robin
Posted on: 13 Apr 2021 07:49
This unicode problem is a bit confusing. It's correct that the Swedish culture should use the "long minus version" (U+2212) for displaying a negative value. The problem is that the key is not included in the Swedish keyboard layout so it's not possible to enter a negative value using the U+2212 unicode (we use the same unicode for minus as the EN layout). 

Is it possible to override the minus unicode for the unicode check?
ADMIN
Stefan
Posted on: 08 Apr 2021 13:09

Hello, Robin,

Thank you for the details.

We tested this locally and found that the symbol for `minus` in the SV culture is different and we have a check if the user has typed culture-based minus. This check is needed to set the value to -0 if the minus symbol is typed:

https://unicode-org.github.io/cldr-staging/charts/38/by_type/numbers.symbols.html#2f08b5ebf85e1e8b



Please ensure that when testing, you are typing the SV culture symbol for minus, because if an EN-based keyboard is used this is a different symbol.

Regards,
Stefan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.