Notify property changed on clear NumericUpDown

2 posts, 0 answers
  1. Bert
    Bert avatar
    29 posts
    Member since:
    May 2012

    Posted 08 Mar Link to this post

    we are using a NumericUpdown and have set UpdateValueEvent to PropertyChanged and UpdateSourceTrigger to PropertyChanged for the binding.

    The property is updated for each change which is the normal behavior.
    The property is not updated when the content of the NumericUpDown is selected and deleted by pressing the Delete key.
    In this case the property is updated as soon as the control loses focus.

    What we expect and need is an immediate update of the property since this should be the behavior according to the property settings. 
    Any help would be appreciated. We are using version 2015 Q3.


  2. Yana
    Yana avatar
    4547 posts

    Posted 09 Mar Link to this post

    Hi Bert,

    We managed to reproduce this issue and I have logged it in our Feedback Portal, you can track its progress at the following link:

    In the meantime, you can work-around it by handling PreviewKeyDown event of the NumericUpDown and explicitly set the value in its handler when the Delete key is pressed. I have attached a sample project to demonstrate the approach, note that I have used our EventToCommandBehavior in order to handle the event in the ViewModel. Please download the attachment and give it a try.

    We're sorry for the caused inconvenience, I have updated your points for the report.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top