Set background color so there is no white flash

3 posts, 0 answers
  1. Clive Hoggar
    Clive Hoggar avatar
    349 posts
    Member since:
    Nov 2008

    Posted 12 May 2009 Link to this post


    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!



  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 May 2009 Link to this post

    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.

    <style type="text/css"
        background-color:black !important; 

    <telerik:RadWindow ShowContentDuringLoad="false" runat="server" NavigateUrl="" ID="RadWindow1" VisibleOnPageLoad="true" > 

  3. Fiko
    Fiko avatar
    1406 posts

    Posted 13 May 2009 Link to this post

    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"
            backgroundblack !important; 

    I hope this helps.

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