Determine visible panel

4 posts, 0 answers
  1. Blair
    Blair avatar
    3 posts
    Member since:
    Aug 2008

    Posted 13 Aug 2008 Link to this post

    Is there anyway to determine which panel is in the most forward facing position? 


  2. Milan
    Milan avatar
    1989 posts

    Posted 14 Aug 2008 Link to this post

    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,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
  4. Basel Nimer
    Basel Nimer avatar
    94 posts
    Member since:
    Oct 2009

    Posted 29 Sep 2010 Link to this post

    Any changes in this regards?
  5. Milan
    Milan avatar
    1989 posts

    Posted 30 Sep 2010 Link to this post

    Hi Basel Nimer,

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

    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
Back to Top