LightBox and Grid

3 posts, 0 answers
  1. Blas
    Blas avatar
    55 posts
    Member since:
    Dec 2007

    Posted 17 Oct 2013 Link to this post

    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. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 22 Oct 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Blas
    Blas avatar
    55 posts
    Member since:
    Dec 2007

    Posted 25 Oct 2013 Link to this post

    Clever solution. Thanks a lot!!!
Back to Top