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

Static Item from Code Behind

1 Answer 7 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
Dale Palmer
Top achievements
Rank 1
Dale Palmer asked on 23 Jul 2014, 11:17 PM
Hi,

I'm populating a Gallery from a datasource in code behind.  However, in some instance we want to put a static image before the retrieved results (eg. If there is a special offer on an item, the special offer image should be the first image in the gallery before the images from the datasource start the slideshow)

Can anyone please help with this?  I am struggling to both insert a static item from code behind and then ensure it is the first image in the slideshow.

Regards

Dale

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 28 Jul 2014, 02:09 PM
Hello Dale,

The required functionality could be achieved by setting the "AppendDataBoundItems" property to true.By using this property, the items that are manually set will render before the items that are coming from the Data Source.
Give this a try and verify if it helps.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ImageGallery
Asked by
Dale Palmer
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or