Add control to databound lightbox

2 posts, 0 answers
  1. Anthony
    Anthony avatar
    1 posts
    Member since:
    Sep 2013

    Posted 01 Dec 2015 Link to this post


    I'm currently using a Lightbox databound to a DataTable to display all the images in a directory.  I'd like to add a RadSocialShare control to the Lightbox but I'm not sure how to use it.  I've looked into using custom templates, but as soon as I do that the built-in databound functionality of the Lightbox control breaks and I can't figure out how to bind the controls to it since binding to the reserved names doesn't seem to work.

    Could you provide me with some examples/help on this?



  2. Kostadin
    Kostadin avatar
    1689 posts

    Posted 04 Dec 2015 Link to this post

    Hello Anthony,

    I am afraid you cannot use both binding and using a template. Nevertheless, a possible solution is to create the RadLightBoxItem on the server by getting the datasource and traverse the data. Also you can create the template declaratively in the mark-up.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top