Reference to the scripts is made through the control template - ascx file, so we do not load them through the code behind. You can check the template to see that we include the js and css for lightbox. Inside the ImageGallery control ( which uses the above mentioned template in Lightbox mode) we populate the control with data by using ContentManager. GetContent method.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items