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

NumericTextbox has problems with comma on Swedish Keyboards

5 Answers 135 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andy Yu
Top achievements
Rank 1
Andy Yu asked on 29 Oct 2010, 09:51 AM
The numeric pad on Swedish keyboards has a comma instead of a period since we use comma as a decimal separator. The NumericTextbox doesn't allow us to type comma on the numeric part of the keyboard.

The workaround we use at the moment is modifying the telerik.textbox.js

From this:
var decimals = { '190''.''110''.''188'',' };

To this:
var decimals = { '190''.''110'',''188'',' };

Notice the separator for 110.

Anyone have a better workaround for this?

This problem applies to version  2.825 of the MVC components.

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 29 Oct 2010, 09:56 AM
Hello Andy Yu,

 Have you tried enabling globalization? The NumericTextBox should respect the decimal separator returned by the .NET CurrentCulture.

Regards,
Atanas Korchev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Andy Yu
Top achievements
Rank 1
answered on 29 Oct 2010, 10:03 AM
Yes, Globalization is turned on in our master page.

0
Atanas Korchev
Telerik team
answered on 29 Oct 2010, 11:36 AM
Hi Andy Yu,

 I am not sure how a Swedish keyboard looks like but if the decimal separator for the culture is comma (as in Deutsch in our online demo) then the numeric input will require comma. Is the comma on the numeric keypad really a comma?

Regards,
Atanas Korchev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Andy Yu
Top achievements
Rank 1
answered on 29 Oct 2010, 11:59 AM
Yes, I'm sure the comma on my numeric pad is a comma...

The layout looks like this:
http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=0530&db=bks&srch=&fname=/SGI_EndUser/t3270_UG/sgi_html/ape.html
See "Figure E-7. IRIS 3270 Emulator Swedish Keyboard Layout"

Pressing comma on the numeric pad gives returns the code 110 presing comma on the alpha part of the keyboard returns the code 188.

0
Georgi Krustev
Telerik team
answered on 03 Nov 2010, 09:34 AM
Hello Andy,

Thank you for your feedback.

I was able to observe the depicted issue and to investigate it further. This issue is fixed and the solution of the problem will be included in the next official release of the Telerik Components for ASP.NET MVC scheduled for the middle of November.

I have updated your Telerik points.

Kind regards,
Georgi Krustev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
NumericTextBox
Asked by
Andy Yu
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Andy Yu
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or