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

Add control to databound lightbox

1 Answer 47 Views
LightBox
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 01 Dec 2015, 07:52 PM

Hi!

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?

 Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 04 Dec 2015, 10:48 AM
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.

Regards,
Kostadin
Telerik
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
Tags
LightBox
Asked by
Anthony
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or