1. Add few RadImageItems with assigned images to them in RadCarousel 2. Try to remove the selected item upon a button click = > the item is removed from the Items collection, but remains visible on the screen and remains in the Children collection
To Reproduce: Add a RadCarousel - add less than 5 items - you can see that the behavior is incorrect Workaround: this.carousel.Items.Add(new RadButtonElement("Text")); for (int i = 0; i < 4; i++) { this.carousel.Items.Add(new RadButtonElement(){ Visibility = ElementVisibility.Hidden }); } http://www.telerik.com/forums/using-a-radcarousel-with-a-variable-number-of-items-less-than-5
To reproduce: - add carousel with few items in it - subscribe to the mentioned events - start the application = > one item is selected but the events are not fired.
FIX. RadCarousel - SelectedItem is not assigned when the control is started. Resolution: Selected Items represents the Clicked by mouse item and this behavior is a desired behavior. So it should be not populated without user click on an item: Instead the users should use the SelectedIndexChanged event in order to detect the current item: private void radCarousel1_SelectedItemChanged(object sender, EventArgs e) { currentItem = radCarousel1.Items[radCarousel1.SelectedIndex]; }
RadCarousel not rotating when the AnimationToApply property is set (263070) To reproduce: from tickets: 263070,258135 1. Add radCarousel with 5 RadImageButtonelements 2. Set the AnimationsToApply property to Animations.Location Workaround: this.radCarousel1.CarouselPath.ZScale = 1000; this.radCarousel1.OpacityChangeCondition = Telerik.WinControls.UI.OpacityChangeConditions.None; this.radCarousel1.AnimationsToApply = Telerik.WinControls.UI.Animations.All;
Add an option to disable the re-animation of RadCarousel on form maximize. Resolution: Added a new boolean property EnableAnimationOnFormResize. When the property is set to false, the re-animation is disabled when form is minimized/maximized.
Same action with the next button runs smoothly.
The SelectedItemChanged event is not firing when you click on arrows. Only the SelectedIndexChanged event is firing. Resolution: The SelectedItemChanged event should be fire only if user click on the item and the ItemClickDefaultAction property is set to SelectItem mode
FIX. RadCarousel - SelectedItemChanged event is not fired
To reproduce: add a RadCarousel and try to add items at design time using the SmartTag. If you try to add more than three items, you get an error: "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
Use the following code: RadCarousel c = new RadCarousel { Parent = this, Dock = DockStyle.Fill }; for (int i = 0; i < 50; i++) { c.Items.Add(new MyButtonElement("Button " + i)); } c.VisibleItemCount = 3; Start the application and click the buttons to switch the elements, you will see the exception
Workaround: public Form1() { InitializeComponent(); this.radCarousel1.CarouselElement.AnimationFinished += CarouselElement_AnimationFinished; } void CarouselElement_AnimationFinished(object sender, EventArgs e) { if (this.radCarousel1.Items.Count == 6) { radCarousel1.CarouselElement.AnimationFinished -= CarouselElement_AnimationFinished; this.radCarousel1.SelectedIndex--; } }