Can I Disable Carousel Items From Rotating

4 posts, 1 answers
  1. Hector
    Hector avatar
    25 posts
    Member since:
    Jul 2011

    Posted 18 Aug 2011 Link to this post

    How can I stop the items in the carousel from rotating?

    I tried setting AnimationsToApply to None, but then all my items appeared stacked on top of each other. I also tried setting EnableLooping to False, and that seemed to do the trick. After selecting an Item I'd display a form, when the user closed the form, the carousel was no longer rotating (or looping), however, one slight issue occurred-- two of the items appeared stacked on top of each other.

    I want the items to appear in a carousel-like circle, but I just don't want them to rotate, because some of my users are finding it annoying.

  2. Stefan
    Admin
    Stefan avatar
    2508 posts
    Member since:
    Dec 2014

    Posted 19 Aug 2011 Link to this post

    Hi Hector,

    Thank you for writing.

    Items looping is controlled by the EnableAutoLoop property. Simply set it to false and they will stop looping. More information regarding RadCarousel properties can be found in this help article.

    I hope that the provided information addresses your question. Should you have any other questions, do not hesitate to contact us.
     
    Regards,
    Stefan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. Hector
    Hector avatar
    25 posts
    Member since:
    Jul 2011

    Posted 19 Aug 2011 Link to this post

    I tried setting EnableAutoLoop to False (in VB.NET) in the Form's Load event handler. It had no effect. FYI, EnableAutoLoop was already set to False when the form first loaded. I didn't have to set it, although I did anyway, as such (using VB.NET):

    Me.RadCarousel1.EnableAutoLoop = False

    ... all to no effect.

    Perhaps if I add a little more detail, maybe it will help you to suggest an alternate solution. I have what I'll call the main form. It has the carousel control on it. When I click on one of the Items (a RadImageButtonElement) on it, the .Click event handler is raised for that item. The event handler opens a form using the typical WinForms formName.Show() method:

    Private Sub RadImageButtonElement1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdItemDesigner.Click
      Me.Cursor = Cursors.WaitCursor
      frmItemMain.Show()
      Me.Cursor = Cursors.Default
    End Sub
     
    In the form that opens (in my case, frmItemMain) I do some work, and then eventually close it, returning me to the main form. At that point the items on the carousel rotate or have already rotated.

    Note, I have Telerik WinForms Controls version 2011.1.11.419.

    UPDATE: OK, here's what I'm seeing... Apparently, the first time I close the child form, it rotates. After that, the items don't rotate, as long as I keep selecting the same item. If I select a different item, the child form opens, i do some work, close it, the items rotate. Then as long as I keep selecting that item, the items won't rotate.

  4. Answer
    Stefan
    Admin
    Stefan avatar
    2508 posts
    Member since:
    Dec 2014

    Posted 24 Aug 2011 Link to this post

    Hi Hector,

    Thank you for the clarification.

    The observed rotation can be controlled by the ItemClickDefaultAction property. Simply set it to None, so the control will not select the clicked item:

    radCarousel1.ItemClickDefaultAction = false

    I hope this helps. Let me know if you have any other questions.

    Regards,
    Stefan
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top