Static Item from Code Behind

2 posts, 0 answers
  1. Dale Palmer
    Dale Palmer avatar
    27 posts
    Member since:
    May 2008

    Posted 23 Jul 2014 Link to this post

    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
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 28 Jul 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top