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

Lightbox popup window or radwindow to radrotator image gallery example

2 Answers 104 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 12 Sep 2012, 11:21 AM
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 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 17 Sep 2012, 08:53 AM
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.

Greetings,
Slav
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.
0
Diana
Top achievements
Rank 1
answered on 17 Oct 2014, 10:17 PM
Hola podrias poner un ejemplo
Tags
Rotator
Asked by
George
Top achievements
Rank 1
Answers by
Slav
Telerik team
Diana
Top achievements
Rank 1
Share this question
or