Postbacks after closing lightbox

2 posts, 0 answers
  1. Steven
    Steven avatar
    11 posts
    Member since:
    Oct 2013

    Posted 21 Jan 2014 Link to this post

    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
  2. Daniel
    Admin
    Daniel avatar
    4943 posts

    Posted 24 Jan 2014 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top