Unplanned
Last Updated: 01 Apr 2019 07:12 by ADMIN
Roberto
Created on: 20 Mar 2019 10:30
Category: MaskedInput
Type: Bug Report
1
Min-max value problem with hungarian culture in RadMaskedNumericInput

RadMaskedNumericInput Maximum value setting is not working with hungarian culture settings.

 

Steps to reproduce:

- Open the attached project, fix the references and start the application

- Click button "English"

- Select the first item from the dropdown

- Inputs are changing to 1433.2 and 1810.9 - OK

- Select the 2nd item from the dropdown

- Inputs are changing to 0 and 59 - OK

- Click button "Hungarian"

- Select the first item from the dropdown

- Inputs are changing to 1433.2 and 1433.2 - NOT OK, Why?


Thanks,

Roberto

 

Attached Files:
3 comments
Roberto
Posted on: 28 Mar 2019 12:23

Hi Dinko,

Thank you for your answer.

I don't think that it is a good idea to change the decimal separator globally in our application, but as a workaround we switched to RadNumericUpDown.

Thanks,

Roberto

ADMIN
Dinko | Tech Support Engineer
Posted on: 27 Mar 2019 13:54
Hello Roberto,

Thank you for your patience and understanding.

After investigating this on my side the reason behind this is the different decimal separator in different cultures. In Hungarian, France, for example, the decimal separator is a comma. The value is wrongly parsed in this case. I have logged this behavior in our Feedback Portal where you can track its progress and vote for its implementation. You Telerik Points have been updated for your involvement.

As a possible workaround, you can set the NumberDecimalSeparator property to dot if it is applicable in your application.
var c = new CultureInfo("hu-HU");
c.NumberFormat.NumberDecimalSeparator = ".";
Thread.CurrentThread.CurrentCulture = c;
Thread.CurrentThread.CurrentUICulture = c;

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Dinko | Tech Support Engineer
Posted on: 26 Mar 2019 08:03
Hi Roberto,

Thank you for the provided files and details steps.

I was able to reproduce it on my side. Still, I haven't found the exact reason behind this. As soon as I have more information I will share my observation.

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