RadCarousel Newbie Questions

6 posts, 0 answers
  1. Harri
    Harri avatar
    12 posts
    Member since:
    Oct 2012

    Posted 04 Feb 2013 Link to this post

    Hi,

    I started work with RadCarousel recently, and I have 2 questions:

    1) Is there a way to hide RadCarousel navigation panel ?  (navigation panel screenshot attached)
    2) How can i make the front Item always be selected?

    Thanks for your help,

    Harri.
  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 04 Feb 2013 Link to this post

    Hello Harri,

    Let me go straight to your questions:

    1. In order to hide RadCarousel's navigation panel, you can set its property - VerticalScrollBarVisibility to "Disabled".

    2. You can set Carousel's selected item like so:

    this.radCarousel1.SelectedItem = this.radCarousel1.Items[0];

    I hope this helps.

    Greetings,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Harri
    Harri avatar
    12 posts
    Member since:
    Oct 2012

    Posted 05 Feb 2013 Link to this post

    First, thanks for your help.

    1) Almost true. I used HorizontalScrollBarVisibility="Hidden", and that's what I wanted.

    2)I think you did not understand me. What I want to do is to Bind SelectedItem to TopContainer. With Xaml Binding It does not work. I tried handel TopContainerChanged event, and in the eventhandler set the top container to be selected,

     

     

     

    'private OnTopContainerChanged(object sender, RoutedEventArgs e)

     

    {

     

     

    if (sampleRadCarousel.SelectedItem !=

     

    ((sampleRadCarousel.Panel

     

    as RadCarouselPanel).TopContainer as CarouselItem).DataContext)

     

    {

    sampleRadCarousel.SelectedItem =

    ((sampleRadCarousel.Panel

     

    as RadCarouselPanel).TopContainer as CarouselItem).DataContext;

     

    }

    }'

     

     

     

    but it crashes. (exception attached)


    I also tried to do it manually, when I call LineLeft or LineRight set the selectedItem but it stops the animation of movement.

    I'll be glad to find a solution,
    Harri.

  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 05 Feb 2013 Link to this post

    Hi Harri,

    I have found the cause of the exception you get and it has been resolved right away. The fix will be available in our next internal build coming on Monday. Thus you should be able to work with the code you pasted below for the handler of TopContainerChanged event. 
    Thank you for reporting it. I have updated your telerik points accordingly.  

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Harri
    Harri avatar
    12 posts
    Member since:
    Oct 2012

    Posted 05 Feb 2013 Link to this post

    Hi. my lisence is for WPF Q3 2011 SP1. How do I get the update ?
  7. Iva
    Admin
    Iva avatar
    3 posts

    Posted 08 Feb 2013 Link to this post

    Hi Harri,

    in case you have purchased a WPF Conrols license and have active subscription and support, you can update your WPF controls by going to your Telerik.com account Manage Products > Choosing your product > Download installer and other resources. 

    Still I was not able to find a WPF Controls license under efratr@tehila.gov.il and could locate a WPF trial only that was downloaded on February, 5th. Could you please let us know, if you are referring to the trial license or to a paid license that is under another telerik.com account?

    Regards,
    Iva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready