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

Select first item in RadCarousel

2 Answers 251 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
xola139
Top achievements
Rank 1
xola139 asked on 15 Mar 2010, 05:24 PM
Hello again to all users of the forum.
I need your support, now I find that, I am using RadCarousel control, which contains various Usercontrol about 5, so my XAML code is as follows:
  
<telerik:RadCarousel x:Name="RadCarousel1"  > 
        <local:usercontro1></local:usercontro1> 
        <local:usercontro2></local:usercontro2> 
        <local:usercontro3></local:usercontro3> 
        <local:usercontro4></local:usercontro4> 
        <local:usercontro5></local:usercontro5> 
</telerik:RadCarousel> 
Now when I run my application at the carousel screen shows nothing, but if I navigate with the buttons on the display begins to move the carousel elements.

What I can not do. is to show the first element of my carousel, a suggestion.

2 Answers, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 15 Mar 2010, 10:13 PM
Hello xola139,

You can use any of the navigation methods to move the carousel at the start of your application. For example, you can use the PageDown method when RadCaousel is loaded (Loaded event):

private void RadCarousel1_Loaded(object sender, RoutedEventArgs e)
{
    // moves to next page
    this.RadCarousel1.FindCarouselPanel().PageDown();
    // or move by specifies number of items
    this.RadCarousel1.FindCarouselPanel().MoveBy(3);
}


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.
0
xola139
Top achievements
Rank 1
answered on 16 Mar 2010, 01:34 AM
Thanks I worked really, I spend a couple of days looking for some documentation for RadCarousel, but that is in line here is very poor but the forum would resolve any doubt, thanks again, the line they used was the second
private void RadCarousel1_Loaded(object sender, RoutedEventArgs e) 
   
    // or move by specifies number of items 
    this.RadCarousel1.FindCarouselPanel().MoveBy(3); 
 
Tags
Carousel
Asked by
xola139
Top achievements
Rank 1
Answers by
Milan
Telerik team
xola139
Top achievements
Rank 1
Share this question
or