Select first item in RadCarousel

3 posts, 1 answers
  1. xola139
    xola139 avatar
    9 posts
    Member since:
    Jan 2010

    Posted 15 Mar 2010 Link to this post

    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. Answer
    Milan
    Admin
    Milan avatar
    1989 posts

    Posted 15 Mar 2010 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. xola139
    xola139 avatar
    9 posts
    Member since:
    Jan 2010

    Posted 15 Mar 2010 Link to this post

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