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

NumericTextBox with german keyboard

16 Answers 297 Views
Input
This is a migrated thread and some comments may be shown as answers.
Achim
Top achievements
Rank 1
Achim asked on 10 Mar 2008, 11:39 AM
Hello,

have a small problem with the NumericTextBox and with german keyboard when entering decimal separator (,)..

With german keyboard layout Textbox only takes decimal separator right above space, the comma found under the numeric block doesnt work.

When swiching to english keyboard layout in windows settings both key works.

Culture from textbox is german too. This also happens with NumericGridColumn.

Think this is a bug, can you please check?

thanks,
achim

16 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 13 Mar 2008, 08:14 AM
Hello Achim,

Can you try setting the DecimalSeparator property of the NumberFormat settings to ",". See the following markup for reference:

    <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"
   <NumberFormat DecimalSeparator="," /> 
   </telerik:RadNumericTextBox> 

Hope this helps.

Kind regards,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Achim
Top achievements
Rank 1
answered on 13 Mar 2008, 10:15 AM
Hello Pavel,

i´ve tried to set the DecimalSeparator explicit to comma as you suggested with same result as before.

So there is still the situation that when entering numbers, the RadNumericTextBox only takes the comma on alphanumeric side of the keyboard, the comma found on the Keyboard under the numeric block doesnt work for this..

i have done some more testing:
- in windows text editor both commas, when switching to hex mode, shows the same hex value.
- the probem doesnt exist in IE7. It exist in Firefox and Safari. For Opera the NumericTextbox takes all characters entered, also alphanumeric chars..
- in Firefox and Safari, when entering alphanumeric chars the box blinks and shows an exclamation mark, when entering the comma in numeric block this doesnt happen, it seems it goes into the box but gets immediately deleted..

Hope this helps you finding more about this issue..

Thanks,
Achim



0
Pavel
Telerik team
answered on 17 Mar 2008, 08:44 AM
Hello Achim,

After further testing I can confirm that you are right and this seems to be a bug with the current version of the RadNumericTextbox under the Firefox browser. I have logged it in our bug-tracking system and our developers will fix it. As a token of gratitude for your feedback I have also updated your Telerik points.

Please excuse us for this temporary inconvenience.

Regards,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Achim
Top achievements
Rank 1
answered on 05 May 2008, 07:50 AM
Hi

is this still on the list to be resolved?
In Q1 2008 this error also occures to me..

Greetings
Achim
0
Pavel
Telerik team
answered on 08 May 2008, 05:59 AM
Hi Achim,

Unfortunately our developers did not have time to look into the problem yet. Please excuse us once again for the inconvenience. We will let you know when the bug is fixed.

Kind regards,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gernot
Top achievements
Rank 1
answered on 04 Jul 2008, 09:11 AM
Hello,
the numeric "Text" porperty returns always a value with a point as decimal seperator.
I have set the DecimalSeperator property to ","  but this does not solve the problem.

Any ideas how to solve this?

Cheers
Alaeddin
0
Achim
Top achievements
Rank 1
answered on 04 Jul 2008, 10:27 PM
Hi,

i also have still the problem that numericinput doesn´t accept the "," from the numeric keyboard-block.. So users still have to use the comma from the alphanumeric block to input "330,33" which is very uncommon and slow to type..

Q1 2008 SP2 says in releasenotes "german culture" fixed, but not for this problem.

Greetings
Achim
0
Maria Ilieva
Telerik team
answered on 07 Jul 2008, 11:15 AM
Hello Achim,

Unfortunately the discussed bug is not fixed and our developers are still working on possible solution. Please excuse us for the inconvenience caused. We will let you know when the bug is fixed.

Thank you for your patience and understanding.

Kind regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joachim Roppert
Top achievements
Rank 1
answered on 22 Feb 2009, 09:54 PM
The issue with using the keypad on german keyboards is still an issue in February 2009. Do you really think we can tell our customers that they have to force their users to use the comma on the main instead the much more comfortable comma on the ? Could you please give us a reliable information about when that issue will be fixed?!
0
Dimo
Telerik team
answered on 24 Feb 2009, 01:31 PM
Hello Joachim,

We have already investigated this problem, but we need some more time for further research and testing. I am afraid we will not be able to allocate time for this before the Q1 2009 release, but I can assure you that we will look into it right after that.

Best wishes,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Steve Newbery
Top achievements
Rank 1
answered on 10 Jun 2009, 07:57 AM
This issue seems to still be there in the latest build (2009.1.527) Is it likely to be fixed sometime?

Until then, is there a client-side workaround, for example to automatically convert a typed period to a comma?
0
Dimo
Telerik team
answered on 10 Jun 2009, 08:40 AM
Hi Steve,

Actually, the problem has been fixed for Q1 2009 SP1 (version 2009.1.402). I just tested it and it works.

<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Culture="German (Germany)" />

Note that the decimal separator of the textbox' culture must match the decimal separator of the selected keyboard layout. In other words, you have to test with a German keyboard layout.


Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Steve Newbery
Top achievements
Rank 1
answered on 10 Jun 2009, 02:58 PM
Dimi,

Maybe it's a slightly different issue then. If I use the demo page for RadNumericTextBox, and set the culture in the droplist to German, then I cannot type the period character. Only a comma is accepted. If I change the culture to English (United States), then I can type a period.

Here in Belgium we have a mixture of AZERTY and QWERTY keyboards, but they all have a period on the numeric keypad. The users complain that they can't type the period character when entering numbers.

So what I'd like to do is allow the numeric keypad to be used even if the culture is French or Dutch, so I have to change the period to a comma on-the-fly. Can this be done? Maybe a small JavaScript?

Thanks, Steve
0
Dimo
Telerik team
answered on 12 Jun 2009, 08:37 AM
Hello Steve,

As I said, the active keyboard layout must match the textbox' culture. If you press the numeric keypad's decimal separator while using the en-US keyboard layout and French (Belgium) textbox, the keypress will be rejected, because the decimal separator of the en-US keyboard is a period, while the French textbox expects a comma.

Here is a simplified example, which shows how to handle invalid numeric keypad keypresses, but you should be aware that this is more or less a hack:


<%@ Page Language="C#" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
<title>RadControls for ASP.NET AJAX</title> 
</head> 
<body> 
<form id="form1" runat="server"
<asp:ScriptManager ID="ScriptManager1" runat="server" /> 
 
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Culture="French (Belgium)" onkeydown="keydown(event)" /> 
 
<script type="text/javascript"
 
function keydown(e) 
    if (e.keyCode == 110) 
    { 
        $find("RadNumericTextBox1")._textBoxElement.value = $find("RadNumericTextBox1")._textBoxElement.value.replace(",", "") + ","; 
        return false; 
    } 
 
</script> 
 
</form> 
</body> 
</html> 



Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Raimondas Kvietkauskas
Top achievements
Rank 1
answered on 30 Jun 2009, 07:49 AM
As I see this problem is not resolvet yet. I'm using AJAX_2009_1_527. Sorry, but this bug put us to trouble. We are international company and this problem is  quite a frequent talking point.
0
Dimo
Telerik team
answered on 30 Jun 2009, 11:34 AM
Hi Raimondas,

In order to be able to enter a decimal separator with the numeric keypad, you must be using a keyboard layout, which matches the textbox' culture. Is this the case? I tested the functionality locally and it is working as expected.

Regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Input
Asked by
Achim
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Achim
Top achievements
Rank 1
Gernot
Top achievements
Rank 1
Maria Ilieva
Telerik team
Joachim Roppert
Top achievements
Rank 1
Dimo
Telerik team
Steve Newbery
Top achievements
Rank 1
Raimondas Kvietkauskas
Top achievements
Rank 1
Share this question
or