Can I use Image Gallery with a .NET repeater?

2 posts, 0 answers
  1. Jamie
    Jamie avatar
    22 posts
    Member since:
    Aug 2012

    Posted 31 May 2016 Link to this post

    I have a page that uses an asp:Repeater control to display images and would like to turn it into a Telerik Image Gallery. I can't find any documentation online about how to do that and I am getting errors saying: Type 'System.Web.UI.WebControls.Repeater' does not have a public property named 'RadImageGallery'.

    Can someone please point me in the direction I need to get this plugin built? 

  2. Viktor Tachev
    Viktor Tachev avatar
    2393 posts

    Posted 01 Jun 2016 Link to this post

    Hello Jamie,

    You can place a RadImageGallery in a Repeater. You should ensure that it is placed in the ItemTemplate.

    <asp:Repeater runat="server" ID="Repeater1">
            <%-- add controls here --%>

    With that said, would you elaborate on why would you want to place RadImageGallery in a Repeater control. The ImageGallery is designed to hold multiple images out of the box. Thus, you can construct a data source holding the images and bind the RadImageGallery to it.

    Viktor Tachev
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top