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

Can I Disable Carousel Items From Rotating

3 Answers 158 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Hector
Top achievements
Rank 1
Hector asked on 18 Aug 2011, 01:21 PM
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.

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 19 Aug 2011, 04:50 PM
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 >>

0
Hector
Top achievements
Rank 1
answered on 19 Aug 2011, 06:53 PM
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.
0
Accepted
Stefan
Telerik team
answered on 24 Aug 2011, 01:58 PM
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 >>

Tags
Carousel
Asked by
Hector
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Hector
Top achievements
Rank 1
Share this question
or