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

UpdateSourceTrigger=PropertyChanged doesn't change Value when typing

3 Answers 650 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Maks
Top achievements
Rank 1
Maks asked on 23 Dec 2010, 03:23 PM
Hello,

I need to validate numericUD value when typing, so i have the following code:
<telerik:RadNumericUpDown HorizontalAlignment="Center"
                        Value="{Binding Path=AdditionalCosts,Mode=TwoWay,
                 UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"
                        IsEditable="True" AutoReverse="False" Minimum="0"
                  SmallChange="1" LargeChange="5" ValueFormat="Numeric" IsInteger="True" />

But it doesn't call setter when i type (only when i click up/down arrows). What should i do to allow numericUD call setter of AdditionalCosts property when i type?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Accepted
Boyan
Telerik team
answered on 27 Dec 2010, 03:02 PM
Hi Maks,

You need to set UpdateValueEvent="PropertyChanged" as the Value is updated only on losing focus by default. Setting this property will update the Value on each digit you enter.

Don't hesitate to contact us if you have other questions.

Regards,
Boyan
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
David
Top achievements
Rank 1
answered on 11 Feb 2020, 11:30 PM
Does anyone know if this is still true?
0
Dilyan Traykov
Telerik team
answered on 12 Feb 2020, 12:25 PM

Hello David,

I set up a small sample project in which setting the UpdateValueEvent property of the RadNumericUpDown to PropertyChanged successfully updates the bound property on each keystroke. Please find it attached to my reply.

Can you please have a look and let me know if this differs from the behavior you observe at your end?

Regards,
Dilyan Traykov
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.
Tags
NumericUpDown
Asked by
Maks
Top achievements
Rank 1
Answers by
Boyan
Telerik team
David
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or