DurationPicker doesn't set the correct SelectedDuration

2 posts, 0 answers
  1. Costin
    Costin avatar
    3 posts
    Member since:
    Apr 2012

    Posted 20 Jul 2012 Link to this post


    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()
        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,
  2. Ivo
    Ivo avatar
    390 posts

    Posted 25 Jul 2012 Link to this post

    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.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top