More in this section

Forums / General Discussions / Opening an image in image gallery

Opening an image in image gallery

5 posts, 0 answered
  1. James Greaves
    James Greaves avatar
    25 posts
    Registered:
    21 Oct 2009
    17 Mar 2011
    Link to this post
    Hi,

    I am building a custom control at the minute to do some bits and bobs.  One of the things I would like to do is to link to an image but instead of it just opening the image.  I would like it to pass the ID to the image widget so the image is opened up on my gallery page...in the widget.

    Is there a way to do this? If yes, I will extend this functionality across the board.

    If I am not being very clear please let me know and I will try to better re-phrase her. 

    Thanks in advance.
  2. James Greaves
    James Greaves avatar
    25 posts
    Registered:
    21 Oct 2009
    22 Mar 2011
    Link to this post
    Anybody got any ideas on this?

  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    22 Mar 2011
    Link to this post
    Hi James,

    You can use MediaUrl of the image. You need to have an ImageGallery control on a page and you should  concat the host and the page on which you dropped the ImageGallery to the MediaUrl of the content item.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
  4. James Greaves
    James Greaves avatar
    25 posts
    Registered:
    21 Oct 2009
    22 Mar 2011
    Link to this post
    Ivan,

    I have this...

     newLink.NavigateUrl = "~/media-centre/image-gallery" + j.MediaUrl;

    Which takes me to the gallery page but does not open the image as I would like.  What am I missing?


    Cheers
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    25 Mar 2011
    Link to this post
    Hello James,

    Have you added ImageGallery widget on media-centre page, which I suppose is a valid page from your SiteMap?

    Best wishes,
    Ivan Dimitrov
    the Telerik team
5 posts, 0 answered