UpdateSourceTrigger=PropertyChanged doesn't change Value when typing

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

    Posted 23 Dec 2010 Link to this post

    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.
  2. Answer
    Boyan
    Admin
    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.

    Regards,
    Boyan
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  3. David
    David avatar
    13 posts
    Member since:
    Feb 2012

    Posted 11 Feb Link to this post

    Does anyone know if this is still true?
  4. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    1173 posts

    Posted 12 Feb Link to this post

    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.
Back to Top