More in this section

Forums / Developing with Sitefinity / Get selected libraries of an Image Gallery

Get selected libraries of an Image Gallery

2 posts, 0 answered
  1. Luc Baeten
    Luc Baeten avatar
    169 posts
    Registered:
    23 Sep 2005
    02 Dec 2008
    Link to this post
    Hello Telerik Team

    I am using the Image Gallery control on a defined page for presenting one or more defined Image Libraries.

    During rendering the Page I am able to get the instance of the image gallery via:

    Dim mainContPlaceHolder As ContentPlaceHolder = Page.Master.FindControl("MainContentplaceholder")

    If Not mainContPlaceHolder Is Nothing Then
        
    Dim imgGallery As Telerik.Libraries.WebControls.ImageGallery =     mainContPlaceHolder.FindControl("ImageGallery1")
    End If


    Now I want to present the name of the selected libraries in the Image Gallery Control in a list on the same page. How can I do that?

    With other words:
    Is it possible to get the list of selected libraries of the image gallery control programmatically? And can I change this list in code behind ?

    Kind regards
    Luc Baeten
  2. valio b
    valio b avatar
    33 posts
    Registered:
    24 Sep 2012
    04 Dec 2008
    Link to this post
    Hi Luc Baeten,

    You can extend the Image Gallery control and override SetListMetadata method.

    You may find this article useful: Add New Field to the Module Properties

    Hope that helps.

    Kind regards,
    valio b
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered