Show binded SelectedItem

2 posts, 0 answers
  1. Sternico
    Sternico avatar
    25 posts
    Member since:
    Sep 2009

    Posted 16 Feb 2010 Link to this post


    I'm using the WPF Carousel in my application and bind the ItemsSource und SelectedItem properties. But when the carousel is loaded, the SelectedItem is not the one the carousel shows in front of it. I've looked at the SelectedItem property in the Loaded event and it was set correctly. I've tried many different ways to achive this:

    foreach (CarouselItem item in carousel.Panel.Children)
       if (item.Item == carousel.SelectedItem)

    carousel.SetIsSelected(carousel.SelectedItem, true);
    carousel.SetIsCurrent(carousel.SelectedItem, true);

    carousel.CurrentItem = carousel.SelectedItem;

    But none of them worked. How can I achieve it?

  2. Milan
    Milan avatar
    1989 posts

    Posted 17 Feb 2010 Link to this post

    Hi Sternico,

    Thank  you for reporting the binding issue with RadCarousel. We have already fixed it and the fix will be available in our next Internal Build.

    For the time being you can try synchronizing the carousel and the combo by subscribing to the SelectionChanged event of the combo:

    private void combo_SelectionChanged(object sender, SelectionChangedEventArgs e)
        if (this.combo.SelectedItem == null)
        this.RadCarousel1.SelectedItem = this.combo.SelectedItem;

    I have updated your Telerik points.

    Best wishes,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top