Value being set to null

Thread is closed for posting
2 posts, 0 answers
  1. Chris
    Chris avatar
    11 posts
    Member since:
    Aug 2011

    Posted 05 Dec 2013 Link to this post

    I'm setting the value for the RadTimeSpanPicker in code, in the OnNavigatedTo event (ie, by populating the Value). The following then happens:

    1- The ChangedEvent fires, with the (args parameter) OldValue being null, and the NewValue being the correct value.
    2- The ChangedEvent then fires AGAIN, with the (args parameter) OldValue being the correct value, and the NewValue being null.

    The net result is that the value seems to be reset on the control. It's insanely frustrating. What's going on?
  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 06 Dec 2013 Link to this post

    Hi Chris,

    What is the value that you are trying to set. We create the scenario you dscribed and it seems to be ok:
    protected override void OnNavigatedTo(NavigationEventArgs e)
               pickerTimer.Value = TimeSpan.FromHours(1);
           private void pickerTimer_ValueChanged_1(object sender, Telerik.Windows.Controls.ValueChangedEventArgs<object> args)

    Please give us more info to see what is the real issue. Thanks!

    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top