Completed
Last Updated: 09 Dec 2019 15:12 by ADMIN
Paul
Created on: 07 Oct 2019 18:26
Category: NumericTextBox
Type: Feature Request
3
Numeric text box not working correctly when running under a different locale

When running as Spanish (es) the control correctly shows commas as the decimal separator but see below.  The control seems pretty broken when running under Spanish.

 

1) When I focus into the text box above that started off bound to a value I am unable to change the value by typing more numbers.  I should be able to put my cursor in front of "33,300" and type "4" it should result in "433,300".  Instead, nothing happens when I type "4".  If I delete ",300" from the end the control then allows numeric entry.

2) If I delete the full number and type in a new one I am unable to enter "." or ",".  Those keys are being ignored.

 

 


2 comments
ADMIN
Marin Bratanov
Posted on: 09 Dec 2019 15:12

This has been implemented and is live with the 2.5.0 release, you can test it out in the demos: https://demos.telerik.com/blazor-ui/numerictextbox/globalization

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
ADMIN
Marin Bratanov
Posted on: 08 Oct 2019 07:38

Hi Paul,

Localization/Globalization are things that we have not implemented yet. The decimal separators are part of that, together with group separators. For the time being, only the default en-US is supported because the decimal separator is hardcoded to a dot ("."). Initial rendering will work because the .ToString() is done by the framework, but then all the UX is something we have to implement on our own, and that happens with JS Interop.

We have localization/globalization on our radar and when we implement them, the numeric textbox will benefit from that as well. At the moment, a tentative target for that is around R1 2020.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor