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

bring to view

3 Answers 54 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Rick Mueller
Top achievements
Rank 1
Rick Mueller asked on 26 Apr 2012, 03:28 PM
Hello,

I have wrapped a RadCarousel in a listbox.. Im not able to click on the radcarouselpanel to bring to the front.. Everything works fine

Help?
thank you
Rick

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 27 Apr 2012, 08:15 AM
Hi Rick,

 Indeed initially the items of the carousel are not visible - you have to scroll (or click one of the scroll buttons) until the first item is brought into view.

If you want the first item brought into view once the RadCarousel is loaded, then you can use a similar code:

private void sampleRadCarousel_Loaded(object sender, RoutedEventArgs e)
       {
           sampleRadCarousel.BringDataItemIntoView(sampleRadCarousel.Items[0]);
       }

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Rick Mueller
Top achievements
Rank 1
answered on 01 May 2012, 05:23 AM
Hello,
Thank you for your reply,, I have the RadCarspanel wrapped in a listbox,, when I click on a far right or left tile it doesn't bring to the front. Your demo does work..but mine moves only with a scrollmouse wheel

Thanks Rick
0
Maya
Telerik team
answered on 01 May 2012, 08:22 AM
Hi Rick,

Actually, that would be a kind of an expected behavior since ListBox handles mouse down events on its own and this event is not passed to the RadCarouselPanel.
I am sending you a sample project illustrating how you can work around this behavior. Please take a look at it and let me know whether it corresponds to your requirements. 

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Carousel
Asked by
Rick Mueller
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Rick Mueller
Top achievements
Rank 1
Maya
Telerik team
Share this question
or