telerik:RadCarousel x:Name="rdcTasks" AutoGenerateDataPresenters="False" telerik:StyleManager.Theme="Office_Black" Margin="0,227,0,6" SelectionChanged="rdcTasks_SelectionChanged" Height="179" VerticalAlignment="Bottom" Loaded="rdcTasks_Loaded"></telerik:RadCarousel>
(TaskQueryService.task objTask in objTasks)
As the the number of items in the datasource is 4, the control doesnt display any data on the screen. I have to scroll to get the stuff displayed. where as if the items are 8 or more the items are displayed. I have another control with same properties set and its working. (dataitems are 49).
5 Answers, 1 is accepted
RadCarousel will not automatically fill its path with items if the number of items is less than the value of the ItemsPerPage property. In case you have few items you can use RadCarouselPanel.BringDataItemIntoView to bring a specific item to the center of the path, once the carousel is loaded.
Hope this helps.
the Telerik team
Here is my code. I am pulling the documents from a comboBox and as I select them, they get added to the carousel. But it always appears on the left side and the opacity is low on it. i want it to appear in the center, fully visible. How do i do that? the XAMl for this, looks like the standard xaml, telerik has. the only thing i changed is the dataBinding.So assume it looks the same.
Whenever you set new ItemsSource on RadCarousel it will run a special animation that loads several items into the carousel. This animation takes precedence over the BringDataItemIntoView animation and the later animation is ignored. We have recently introduced new property on RadCarouselPanel called AutoLoadItems which disables the initial animation when the property is set to false.
With our latest release you will be able to do the following:
This will disable the initial animation and BringDataItemIntoView will work.
Those latest improvements will be available this Friday with our latest internal build for Q3.
the Telerik team