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

Bug with null value

5 Answers 82 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Frank Wanicka
Top achievements
Rank 1
Frank Wanicka asked on 12 Aug 2010, 08:35 PM
I am seeing an odd behavior. I have the following code:

<telerikInput:RadNumericUpDown Minimum="0"
            Maximum="999999"
            NullValue=""
            ValueFormat="Currency"
            Value=""
            ShowButtons="False"
            Width="79"
            ValueChanged="TotalPrice_ValueChanged"
            UpdateValueEvent="PropertyChanged" />

The first time I mouse into or tab into the box and start typing, I can type one number, and then the box immediately formats it. For example, if I type "1", the box immediately updates to "1.00". the bug is that the cursor is to the left of the 1. So, if I tab into the box and type 123, the box actually now has a value of 231.00. If I select the whole value and click delete, then starting typing, the behavior changes. I can now type a series of numbers and the formatting is not applied until the box loses focus. Please advise if this is a known issue and if there are any workarounds. I have tried it with 2010.1 and 2010.2 and both exhibit the same behavior.

5 Answers, 1 is accepted

Sort by
0
Frank Wanicka
Top achievements
Rank 1
answered on 12 Aug 2010, 08:58 PM
It appears to be caused by 

UpdateValueEvent="PropertyChanged"

I can remove the ValueChanged event and it still occurs.

If I change the UpdateValueEvent then the behavior is as expected.

Unfortunately, I need to know every time the value changes as the user types. I am using this to filter an entityset.

0
George
Telerik team
answered on 18 Aug 2010, 08:16 AM
Hi Frank Wanicka,

Proceed the conversation in the Support ticket due the private information and attachments.

Greetings,
George
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
Valdo
Top achievements
Rank 1
answered on 16 Nov 2010, 09:54 AM
I have the same issue. Is there any common solution for this?
0
Frank Wanicka
Top achievements
Rank 1
answered on 16 Nov 2010, 02:34 PM
It has not been fixed unfortunately:

PITS# 3329

and I never found a workaround. I had to use another vendor's control to get the desired behavior.
0
Valdo
Top achievements
Rank 1
answered on 16 Nov 2010, 03:20 PM
Frank Wanicka, thanks for the info.
Tags
NumericUpDown
Asked by
Frank Wanicka
Top achievements
Rank 1
Answers by
Frank Wanicka
Top achievements
Rank 1
George
Telerik team
Valdo
Top achievements
Rank 1
Share this question
or