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

    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
  2. Ivo
    Admin
    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.

    Greetings,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top