I have a strange thing when entering values in a RadNumericTextbox with and without decimals. I was able to reproduce the behavior with this simple form:
To reproduce do the following:
1) In the first textbox enter 2.2 (i have Swedish culture set so comma (,) is my my decimal separator).
2) Using the mouse, click the second textbox.
3) My first textbox now shows 2.20 (and thats what i expected).
4) Click the first textbox again (value selected).
5) Just enter a 2 on the keyboard
6) Click on the second textbox
My first textbox still shows 2.20 but I was expecting 2.00!
This surely cannot be an expected behavior, is there something I am missing? A property that must be set?
The funny thing is that I can cure this behavior by pressing [ENTER] while in the first textbox. After that all works as expected.
Using v.2012.2.607.40 components.
Anyone got an idea what this is all about?
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"rcmMain"
runat
=
"server"
></
telerik:RadScriptManager
>
<
div
>
<
h2
>Sample</
h2
>
<
telerik:RadNumericTextBox
ID
=
"txtNumber"
runat
=
"server"
></
telerik:RadNumericTextBox
>
<
telerik:RadNumericTextBox
ID
=
"txtNumber2"
runat
=
"server"
></
telerik:RadNumericTextBox
>
</
div
>
</
form
>
</
body
>
</
html
>
To reproduce do the following:
1) In the first textbox enter 2.2 (i have Swedish culture set so comma (,) is my my decimal separator).
2) Using the mouse, click the second textbox.
3) My first textbox now shows 2.20 (and thats what i expected).
4) Click the first textbox again (value selected).
5) Just enter a 2 on the keyboard
6) Click on the second textbox
My first textbox still shows 2.20 but I was expecting 2.00!
This surely cannot be an expected behavior, is there something I am missing? A property that must be set?
The funny thing is that I can cure this behavior by pressing [ENTER] while in the first textbox. After that all works as expected.
Using v.2012.2.607.40 components.
Anyone got an idea what this is all about?