Is there anyway to determine which panel is in the most forward facing position?
Thanks,
blair
3 Answers, 1 is accepted
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.
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