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

Set background color so there is no white flash

2 Answers 97 Views
Window
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 12 May 2009, 01:01 PM

Hi

Is it possible to have a black backgound to the content (a page that embeds a flash video in this case) ,
such that when the window appears, the window starts black while waiting for the content, rather than white that
changes to black after an instant?

I have set the window bg to black and I have set the content page to black bg on init but there is stll a brief white flash
until the page is loaded in the window.

Any help appreciated!

Thanks

Clive

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 May 2009, 07:12 AM
Hello Clive,

I guess setting the ShowContentDuringLoad property to false will give the desired behavior. You can also add the CSS shown below in order to change the background color to black.

CSS:
 
<style type="text/css"
.rwLoading  
{  
    background-color:black !important; 
}  
</style> 

ASPX:
 
<telerik:RadWindow ShowContentDuringLoad="false" runat="server" NavigateUrl="http://www.telerik.com" ID="RadWindow1" VisibleOnPageLoad="true" > 
</telerik:RadWindow> 

Thanks,
Shinu.
0
Fiko
Telerik team
answered on 13 May 2009, 10:02 AM
Hi Clive,

This behavior can be achieved by using the followings approach :
  • In the declaration of RadWindow, set the ShowContentDuringLoad property to "false"
  • Add the following CSS declaration to the head tag of the parent page:

<style type="text/css"
    .rwLoading 
    { 
        backgroundblack !important; 
    } 
</style> 


I hope this helps.

Regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Fiko
Telerik team
Share this question
or