UpdateSourceTrigger=PropertyChanged doesn't change Value when typing

2 posts, 1 answers
  1. Maks
    Maks avatar
    1 posts
    Member since:
    Dec 2010

    Posted 23 Dec 2010 Link to this post


    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?

  2. Answer
    Boyan avatar
    758 posts

    Posted 27 Dec 2010 Link to this post

    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.

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
Back to Top