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

Issue with ItemsPerPage

3 Answers 86 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
David Ribb
Top achievements
Rank 1
David Ribb asked on 22 Apr 2010, 05:53 AM
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?

Thanks,
David Ribb

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 23 Apr 2010, 12:26 PM
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();
      this.myCarousel.FindCarouselPanel().MoveBy(1);
}

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

Best wishes,
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
Nolan Barnes
Top achievements
Rank 1
answered on 29 Mar 2012, 10:32 AM
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???
0
Maya
Telerik team
answered on 29 Mar 2012, 11:47 AM
Hi David,

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

All the best,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Carousel
Asked by
David Ribb
Top achievements
Rank 1
Answers by
Maya
Telerik team
Nolan Barnes
Top achievements
Rank 1
Share this question
or