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

Change number of panels in Carousel

1 Answer 97 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 2
Don asked on 11 Mar 2021, 09:19 PM

Newbie attempting to use the Carousel control.  The defaults of the control work fine for my needs, but I want to change the number of panels in the control.  I only have 3 items that I want to use in the carousel, which are images.  However, by default the carousel has 5 or 6 panels.  I only want 3 panels for my 3 images in the carousel.  How do I change the number of panels in the carousel?

 

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 16 Mar 2021, 10:52 AM

Hello Don,

Thank you for choosing the RadCarousel control.

You can control the number of items that are displayed in it by setting the ItemsPerPage of the RadCarouselPanel. For the purpose, you will need to set the ItemsPanel property of the RadCarousel control like so:

            <telerik:RadCarousel.ItemsPanel>
                <ItemsPanelTemplate>
                    <telerik:RadCarouselPanel ItemsPerPage="3" />
                </ItemsPanelTemplate>
            </telerik:RadCarousel.ItemsPanel>

Please give this a try and let me know if it provides the desired result.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Carousel
Asked by
Don
Top achievements
Rank 2
Answers by
Dilyan Traykov
Telerik team
Share this question
or