Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > NumericUpDown > UpdateSourceTrigger=PropertyChanged doesn't change Value when typing

Answered UpdateSourceTrigger=PropertyChanged doesn't change Value when typing

Feed from this thread
  • Maks avatar

    Posted on Dec 23, 2010 (permalink)

    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.

    Reply

  • Answer Boyan Boyan admin's avatar

    Posted on Dec 27, 2010 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > NumericUpDown > UpdateSourceTrigger=PropertyChanged doesn't change Value when typing
Related resources for "UpdateSourceTrigger=PropertyChanged doesn't change Value when typing"

WPF NumericUpDown Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]