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

Carousel Item Focus Problem

3 Answers 88 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 11 Feb 2016, 06:10 PM
I have a carousel that has items that are getting generated dynamically using a DataTemplate. My problem is that I cannot get a GotFocus event to fire on the carousel if an item is clicked. If I don't use the dataTemplate and let the carousel create the items with the properties listed then these items fire the GotFocus event fine. Any ideas?

3 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 11 Feb 2016, 07:06 PM
Okay, Quick Edit-- I have figured out that if I wrap the items in my DataTemplate in a ScrollViewer the items then get focus, however, when they are clicked they no longer are brought to the front of the carousel unless I click on the small border that is around the items.
0
Stefan Nenchev
Telerik team
answered on 15 Feb 2016, 01:23 PM
Hello Robert,

Can you please share more details on the exact requirements you aim for? Generally, you can use the SelectionChanged or SelectionChanging events of the RadCarousel which are fired when changing the different items of the control.

Regards,
Stefan Nenchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Robert
Top achievements
Rank 1
answered on 17 Feb 2016, 08:04 PM
I got it working. Thanks for the help.
Tags
Carousel
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or