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

Can I use Image Gallery with a .NET repeater?

1 Answer 125 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
Jamie
Top achievements
Rank 2
Jamie asked on 31 May 2016, 03:04 PM

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? 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 01 Jun 2016, 12:57 PM
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">
    <ItemTemplate>
        <%-- add controls here --%>
    </ItemTemplate>
</asp:Repeater>


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.



Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
ImageGallery
Asked by
Jamie
Top achievements
Rank 2
Answers by
Viktor Tachev
Telerik team
Share this question
or