Lightbox popup window or radwindow to radrotator image gallery example

3 posts, 0 answers
  1. George
    George avatar
    25 posts
    Member since:
    Oct 2008

    Posted 12 Sep 2012 Link to this post

    I'm using the radrotator image gallery example and i'm trying to achieve the following:

    When a user clicks a full image (imagePreview) a lightbox popup window will be come up containing the full image and the comments. 

    I wrote the following code with no result:

    aspx file

    <a runat="server"  id="linkPreview" rel="lightbox">
                            <asp:Image ID="imagePreview" Height="192px" Width="272px" AlternateText="preview"
                                BorderWidth="0" runat="server" ImageUrl="Images/spacer.gif" /></a>

    aspx.cs file

    linkPreview.Title = fInfo.comments;
               linkPreview.HRef = imagePreview.ImageUrl;

    Any ideas on how to achieve this either with jquery lightbox or radwindow (I would like the popup window contains both full image and comments)?

    Thank you very much apriori. 
  2. Slav
    Slav avatar
    1359 posts

    Posted 17 Sep 2012 Link to this post

    Hello George,

    You can use the client-side event of RadRotator OnClientItemClicked in order to capture the item click event and to open a RadWindow or a pop-up of your choice in its handler. The second parameter of the event handler, eventArgs, contains the method get_item that will allow you to reference the image in the rotator item and to get its src so that you can display it in the pop-up.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Diana
    Diana avatar
    1 posts
    Member since:
    Oct 2013

    Posted 17 Oct 2014 in reply to Slav Link to this post

    Hola podrias poner un ejemplo
Back to Top