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

Frontmost item in RadCarouselPanel after load

2 Answers 43 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
jwhitley
Top achievements
Rank 1
jwhitley asked on 24 May 2010, 02:51 PM
Hi,

I have 5 items in a RadCarouselPanel and I'd like the initial behaviour of the control to show the leftmost item. Whatever i do it always seems to start with the middle item.

I've tried LineLeft, PageLeft etc etc, during the Loaded event of the control, and although programmatically these methods are having an effect on the HorizontalOffset of the control, by the time it actually displays the middle item is centred again.

What's up?

Cheers
John

2 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 25 May 2010, 08:39 AM
Hello jwhitley,

The thing is that RadCarousel initializes an animation for the appearance of the items and as a result the methods in the Loaded event are ignored. So, what you need to do is to set in the definition of the carousel in xaml its property AutoLoadItems to "false".
I am sending you a sample project so that you are able to see and test the proposed solution.


All the best,
Maya
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.
0
jwhitley
Top achievements
Rank 1
answered on 28 May 2010, 04:34 PM
Works great. Thanks very much.
Tags
Carousel
Asked by
jwhitley
Top achievements
Rank 1
Answers by
Maya
Telerik team
jwhitley
Top achievements
Rank 1
Share this question
or