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

Postbacks after closing lightbox

1 Answer 61 Views
LightBox
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 21 Jan 2014, 10:03 AM
Hi there

I'm trying to emulate some of your demo code from here: http://demos.telerik.com/aspnet-ajax/lightbox/examples/templates/defaultvb.aspx?#qsf-demo-source. When I close the Lightbox by clicking on the "X" on the top right and then click the same radbutton to launch it again, the page posts back before launching the lighbox again. Is there a way to switch this postback off?

Regards

Steven

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Jan 2014, 08:43 AM
Hello Steven,

When closing the lightbox or navigating, RadLightBox disposes the template automatically. This is why it needs to reload it from the server next time. You can enable template caching (single template only) by setting the PreserveCurrentItemTemplates property to true.

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