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

Lightbox automatically closing

1 Answer 60 Views
LightBox
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 11 Jun 2014, 09:09 PM
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

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 16 Jun 2014, 02:02 PM
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.

Regards,
Angel Petrov
Telerik
 

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.

 
Tags
LightBox
Asked by
Mark
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or