How to add javascript events?

2 posts, 0 answers
  1. Paul
    Paul avatar
    32 posts
    Member since:
    Mar 2011

    Posted 09 Oct 2015 Link to this post

    I want to use the lightbox as a way for users as a way to select the image they want ​from the light box.  I thought this would help: . However, that seems to create just a single item with a single image, and I need the javascript to apply to every image. Can this be done?
  2. Viktor Tachev
    Viktor Tachev avatar
    2460 posts

    Posted 14 Oct 2015 Link to this post

    Hi Paul,

    The forum post you are referring to illustrates the approach for one image. However, you can apply the same onclick handler to multiple images.

    You can iterate through the images that would be shown in the RadLightBox and add the client-side logic for closing the preview.

    Viktor Tachev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top