ValueChanged Event is not fired

4 posts, 1 answers
  1. Vit100
    Vit100 avatar
    66 posts
    Member since:
    Oct 2012

    Posted 02 Dec 2010 Link to this post

    <telerik:RadNumericUpDown Value="{Binding Path=Question.Response, Mode=TwoWay}"  ValueChanged="RadNumericUpDown_ValueChanged" />

    private void RadNumericUpDown_ValueChanged(object sender, Telerik.Windows.Controls.RadRangeBaseValueChangedEventArgs e)
               var bindExpression = ((RadNumericUpDown)sender).GetBindingExpression(RadNumericUpDown.ValueProperty);

    Code above should be called everytime value in NumericUpDown is changing.. Yes, it is fired if you use arrows, but if you type manually into textbox it is not untill control looses focus....
    Unfortunantely RadNumericUpDown doesn't have ValueChanging event...

    NumericUpDown from toolkit also has event ValueChanging, but also does not fire it if text entered manually... Similar bug.

    Pls advise.
  2. Answer
    Boyan avatar
    758 posts

    Posted 03 Dec 2010 Link to this post


    The Value of RadNumericUpDown is updated on losing focus by default, so the ValueChanged event is triggered then as well. However there is a way to change when the Value is updated. Just set : UpdateValueEvent="PropertyChanged". This will update the Value on every keystroke.

    Hope this helps. Let me know if you have further questions.

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. Vit100
    Vit100 avatar
    66 posts
    Member since:
    Oct 2012

    Posted 03 Dec 2010 Link to this post

    I see that with  UpdateValueEvent="PropertyChanged"  i even don't need  RadNumericUpDown_ValueChanged event handler in code behind...

    Nice job. I love your controls!!!
  4. Sajid Ali
    Sajid Ali avatar
    12 posts
    Member since:
    Aug 2010

    Posted 30 Apr 2013 Link to this post

    thanks it was really a helpfull post
Back to Top