Set background color so there is no white flash

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

    Posted 12 May 2009 Link to this post

    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. 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.

    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.
  3. Fiko
    Admin
    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"
        .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.
Back to Top