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

Determine visible panel

3 Answers 100 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Blair
Top achievements
Rank 1
Blair asked on 13 Aug 2008, 06:36 PM
Is there anyway to determine which panel is in the most forward facing position? 

Thanks,

blair 

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 14 Aug 2008, 12:55 PM
Hello Blair,

I assume that you are referring to the items that are shown on the RadCarousel control. Unfortunately, at the moment there is no straightforward way of determining which item is at the top position. However, you could use the ZIndex attatched property to find the top element. You could loop through all children of a RadCarouselPanel and compare the ZIndex properties of all items using the static method Panel.GetZIndex(child) - the child with the largest z index will be one at the top. If you are using RadCarousel, rather than RadCarouselPanel, you should first get the RadCarouselPanel that the RadCarousel uses by using the RadCarousel.FindCarouselPanel() method, and then apply the ZIndex comparison.
We will be adding TopElement property to our carousel in a future release.

All the best,
Milan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Basel Nimer
Top achievements
Rank 2
answered on 30 Sep 2010, 02:56 AM
Any changes in this regards?
0
Milan
Telerik team
answered on 30 Sep 2010, 11:41 AM
Hi Basel Nimer,

RadCarouselPanel now has a property called TopContainer which holds a reference to top item of the carousel.


Regards,
Milan
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
Tags
Carousel
Asked by
Blair
Top achievements
Rank 1
Answers by
Milan
Telerik team
Basel Nimer
Top achievements
Rank 2
Share this question
or