We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Carousel SelectedItem Type


We are currently building a Carousel control by displaying file thumbnails and enable load to specific file content by clicking the selected thumbnail.
But unfortunately facing the issue of Carousel selectedItem type, it has different type inconsistently.

Below are the temporary code to handle the different type issue:

if (Carousel.SelectedItem != null)
                File itemSelected = null;

                if (Carousel.SelectedItem.GetType() == typeof(File))
                    itemSelected = (File)Carousel.SelectedItem;
                    itemSelected = (File)((CarouselItem)Carousel.SelectedItem).Content;
We can not figure out the reason of different type needed and causing different type since all the file are same. 
Please advise, thank you.

1 Reply

MS Mariappan S Syncfusion Team November 14, 2014 01:20 PM UTC

Hi Chong,


Thank you for contacting Syncfusion Support.


We have prepared the sample using the provided code snippet, but we are unable to reproduce the reported issue in our latest version Could you please check our attached sample?


If possible could you please provide more information about this issue with replication procedure and also provide us Product Version details which you are currently using , that would be very helpful for us to resolve your problem at earliest.


Please let know if you have any queries.



Mariappan S.


Attachment: CarouselSample_f15461c0.zip

Live Chat Icon For mobile
Up arrow icon