Issue with ItemsPerPage

4 posts, 0 answers
  1. David Ribb
    David Ribb avatar
    16 posts
    Member since:
    Aug 2012

    Posted 22 Apr 2010 Link to this post

    When I set this number greater than the amount of items in the carousel, nothing shows up.  The carousel controls show, just none of the items.  I set the number to what looks good, but then when users delete data, the items are gone.  Any ideas?

    David Ribb
  2. Maya
    Maya avatar
    4062 posts

    Posted 23 Apr 2010 Link to this post

    Hello David Ribb,

    The logic of the Carousel is that the Items are shown in the beginning only if their number is equal or larger than the number specified for their appearance in the CarouselPanel. If the sum of the Items is smaller, then the animation at the beginning does not show. 
    A possible solution is to add event raised on the Carousel Loading and you may use either the method of the Carousel Panel - MoveBy(1), or PageDown(). Below is shown the code snipped with the two possible solutions:
    void myCarousel_Loaded(object sender, RoutedEventArgs e)
        // this.myCarousel.FindCarouselPanel().PageDown();

    The parameter in the method MoveBy() depends on the design of your Carousel.

    Best wishes,
    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.
  3. Nolan Barnes
    Nolan Barnes avatar
    2 posts
    Member since:
    Mar 2010

    Posted 29 Mar 2012 Link to this post

    Unfortunately your workaround does not. The loaded event is fired early and you still have the problem, if your panel items are comiing up a little bit later. The result is, that you will see nothing.
    So, what is the real solution???
  4. Maya
    Maya avatar
    4062 posts

    Posted 29 Mar 2012 Link to this post

    Hi David,

    Please take a look at this forum thread for a reference. 

    All the best,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top