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

LightBox and Grid

2 Answers 64 Views
LightBox
This is a migrated thread and some comments may be shown as answers.
Blas
Top achievements
Rank 1
Blas asked on 17 Oct 2013, 02:40 PM
Hello,

I have a grid with a thumbnail for each row that now links to the picture of the product. When the user clicks the thumbnail a fancybox shows the picture of the product.

I'm trying to do the same with RadLightBox in the same way, but it seems very complicated to me to bind the RadLightBox component to each picture in the grid. I wonder whether is possible or not to changed the imageURL in the client side when the user clicks the thumbnail.

2 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 22 Oct 2013, 10:43 AM
Hi Roberto,

A better solution is to bind RadLightBox to an image collection and switch the images by setting a current item index as demonstrated in the following live example. Additionally for your convenience I prepared a small sample and attached it to this thread. Please give it a try and let me know about the result.

Regards,
Kostadin
Telerik
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 the blog feed now.
0
Blas
Top achievements
Rank 1
answered on 25 Oct 2013, 08:31 AM
Clever solution. Thanks a lot!!!
Tags
LightBox
Asked by
Blas
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Blas
Top achievements
Rank 1
Share this question
or