Lightbox automatically closing

2 posts, 0 answers
  1. Mark
    Mark avatar
    2 posts
    Member since:
    Jun 2014

    Posted 11 Jun 2014 Link to this post

    We are displaying a lightbox with a simple form and button within a relatively complex page (complex mostly due to the foundation css classes used), and as soon as it comes up it closes within 1-4 seconds.  If there is a javascript timer on the page closes in 1-2 seconds; if the same page doesn't have the timer it closes in 3-4 seconds.  A simple page with the same lightbox (using their same master page) stays open until manually closed.  It appears then that other stuff is causing the closing.  Is there a way the lightbox can block the page until it is closed? Are there any best practices on keeping a lightbox isolated from what else is going on in the page?
    Thanks very  much
  2. Angel Petrov
    Angel Petrov avatar
    1133 posts

    Posted 16 Jun 2014 Link to this post

    Hi Mark,

    It seems that the page is posting back and this is causing the RadLightBox to close. Could you please ensure that this is not the case? Bare in mind that if the page postbacks it is expected for the light box to close as the entire page is being refreshed. In order to provide a precise answer on why are you experiencing such behavior I would like to ask you to share with us the contents of the problematic page.

    As for isolating the light box from the rest of the page you can try ajaxifying it. That way you will be able to update certain parts of the page without entirely refreshing it.

    Angel Petrov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top