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

New Item added to DataBound list not shown until scrolling

1 Answer 30 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 09 May 2017, 01:08 PM
I think this might be a bug, but I have found an problem with the carousel. If I add a new Item to the collection it is displayed in the carousel as expected. If I now remove this Item from the list and Add a new Item I see an empty carousel and I have to scroll first before I see the item.

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 12 May 2017, 08:06 AM
Hello Kevin,

This behavior is actually expected as the control is designed this way. Similar scenarios have been discussed in the following threads: thread 1, thread 2.

As suggested there, if you need to manually center the new item, you should call the BringDataItemIntoView on the newly added item.

Do let me know if this works for you.

Regards,
Dilyan Traykov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Carousel
Asked by
Kevin
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or