This is a migrated thread and some comments may be shown as answers.

Value being set to null

1 Answer 37 Views
TimeSpanPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris
Top achievements
Rank 1
Chris asked on 05 Dec 2013, 09:12 PM
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?

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 06 Dec 2013, 12:23 PM
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)
       {
           base.OnNavigatedTo(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!

Regards,
Valentin.Stoychev
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
TimeSpanPicker
Asked by
Chris
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or