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

How to create Rotator with thumnails in code behind?

I am trying to create a rotator with thumbnails in code behind with:

asp.net vs2010
Syncfusion version 13.3.07

I have successfully added rotator items using code like:

 rotator.DataSource = some list;

However when I try to add thumbnail items, and run the application I get an error:

rotator.ThumbItems.AddRange(some list);

Please see Error below:




1 Reply

KS Kalai Selvi Rajendran Syncfusion Team December 7, 2015 12:59 PM UTC

Hi Cliff,
Query : when load the thumbnail items in code behind, got an error.
Sorry for the confusion.
By default, when we bind a list to dataSource property directly to Rotator, then we don’t need to bind thumb Nail items separately, it will fetch the same items which was set to dataSource property. So Just enough to set True to showThumbNail property

Otherwise we can add the items and thumb nail items separately as like in below online demo link.
http://asp.syncfusion.com/demos/web/rotator/thumbnail.aspx

We have prepared simple sample for above mentioned scenario and can be downloaded from below link:

http://www.syncfusion.com/downloads/support/forum/121346/ze/forum-193652405

If you have any other queries, please let us know.

Regards,
Kalai Selvi M.R.

Loader.
Up arrow icon