SelectedItem Problem

2 posts, 0 answers
  1. Manuel
    Manuel avatar
    1 posts
    Member since:
    Jan 2009

    Posted 17 Feb 2009 Link to this post

    Hi, I've a problem with the SelectedItem property.
    I set ItemsPerPage = 3

    The databinding is OK, so I can scroll any element in the collection

    But, when I try to do this:



    .sampleCarousel.SelectedItem = this.sample.Items[index];

    if the Item isn't in the view the Carousel doesn't update its view...

    For example if the SelectedItem corresponds to item 3 in the collection and I do this

    this.sampleCarousel.SelectedItem = this.sample.Items[1];

    The carousel view doesn't update

    Where is the problem?
    Thanks in advance,


  2. Milan
    Milan avatar
    1989 posts

    Posted 19 Feb 2009 Link to this post

    Hi Manuel,

    This is a know issue but it has a very easy workaround that will do the trick.

    RadCarouselPanel panel = this.RadCarousel1.FindCarouselPanel();  
    this.RadCarousel1.SelectedItem = this.sample.Items[index];  
    Record record = this.RadCarousel1.FindRecord(this.sample.Items[index];);  

    The BrindDataItemIntoView method will bring any Record to the center of the path. Still, it will not mark the Record as selected.
    Hope this works

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top