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: 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?


  2. Daniel
    Daniel avatar
    4949 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.

    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.
Back to Top