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

DurationPicker doesn't set the correct SelectedDuration

1 Answer 56 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Costin
Top achievements
Rank 1
Costin asked on 20 Jul 2012, 02:54 PM
Hi,

I found a problem in DurationPicker control. On SelectionChanged, the SelectedDuration is wrong. It always show the previous value.

You can reproduce the problem easily just but debugging the following code:

public MainPage()
{
    InitializeComponent();
 
    picker.SelectionChanged += PickerOnSelectionChanged;
}
 
private void PickerOnSelectionChanged(object sender, SelectionChangedEventArgs selectionChangedEventArgs)
{
    var a = picker.SelectedValue;
    var b = picker.SelectedDuration;
 
    var item = selectionChangedEventArgs.AddedItems;
}

Do you know any workaround for this?

Best regards,
Costin

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 25 Jul 2012, 07:00 AM
Hi Costin,

The DurationPicker control is designed to be used only internally into the RadScheduleView's dialog and that is why it may not fit into your scenario. The DurationPicker changes its SelectedDuration when it loses focus so you can use this event.

Greetings,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Costin
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or