More in this section
Forums / Designing with Sitefinity / RadAjaxLoadingPanel in UserControl to span full browser

RadAjaxLoadingPanel in UserControl to span full browser

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Duncan Evans
    Duncan Evans avatar
    122 posts
    07 Jul 2009
    23 Sep 2009
    Link to this post
    I posted this on the Telerik forums but have not received any reply yet, was wondering if someone here could help me:

    I have a RadAjaxLoadingPanel in a user control (I develope with Sitefinity) and i am trying to make the full browser screen shade or overlay with a transparency when someone clicks a button to perform a action, i have found some info on this within the forums but none talk about it from within a usercontrol.

    Could somone help me get this working? This is what i have so far:

        min-height:100%; /*all except IE6*/ 
    * html html, 
    * html body, 
    * html form 
        height:100%; /*IE6 only*/ 
    body { 

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsletterSignupMini.ascx.cs" 
        Inherits="UserControls_NewsletterSignupMini" %> 
    <telerik:RadCodeBlock runat="server"
        <script type="text/javascript"
       function centerUpdatePanel() 
       function centerElementOnScreen(element) 
            var scrollTop = document.body.scrollTop; 
            var scrollLeft = document.body.scrollLeft; 
            var viewPortHeight = document.body.clientHeight; 
            var viewPortWidth = document.body.clientWidth; 
            if (document.compatMode == "CSS1Compat") 
             viewPortHeight = document.documentElement.clientHeight; 
             viewPortWidth = document.documentElement.clientWidth; 
             scrollTop = document.documentElement.scrollTop; 
             scrollLeft = document.documentElement.scrollLeft; 
            var topOffset = Math.ceil(viewPortHeight/2 - element.offsetHeight/2); 
            var leftOffset = Math.ceil(viewPortWidth/2 - element.offsetWidth/2); 
            var top = scrollTop + topOffset - 40; 
            var left = scrollLeft + leftOffset - 70; 
      = "absolute"
   = top + "px"; 
   = left + "px"; 
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" 
        <table border="0" cellspacing="0" cellpadding="0" class="NewsletterTable"
                <td class="Name"
                    <telerik:RadTextBox ID="txtFirstName" runat="server" EmptyMessage="First Name" SkinID="sknNewsletterMini_Name" 
                        TabIndex="1" ValidationGroup="valNewsletterForm"
                    <asp:RequiredFieldValidator ID="valreqFirstName" runat="server" Display="Dynamic" 
                        ControlToValidate="txtFirstName" ValidationGroup="valNewsletterForm" /> 
                <td class="Name"
                    <telerik:RadTextBox ID="txtLastName" runat="server" EmptyMessage="Last Name" SkinID="sknNewsletterMini_Name" 
                        TabIndex="2" ValidationGroup="valNewsletterForm"
                    <asp:RequiredFieldValidator ID="valreqLastName" runat="server" Display="Dynamic" 
                        ControlToValidate="txtLastName" ValidationGroup="valNewsletterForm" /> 
                <td rowspan="2" class="Button"
                    <asp:ImageButton ID="btnNewsletterSignup" runat="server" SkinID="sknNewsletterMini_Button" 
                        TabIndex="4" OnClick="btnNewsletterSignup_Click" ValidationGroup="valNewsletterForm" /> 
                <td colspan="2" class="Email"
                    <telerik:RadTextBox ID="txtEmail" runat="server" EmptyMessage="Email Address" SkinID="sknNewsletterMini_Email" 
                        TabIndex="3" ValidationGroup="valNewsletterForm"
                    <asp:RegularExpressionValidator ID="valexpEmail" runat="server" Display="Dynamic" 
                        ControlToValidate="txtEmail" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ValidationGroup="valNewsletterForm" /><asp:RequiredFieldValidator ID="valreqEmail" 
                            runat="server" Display="Dynamic" ControlToValidate="txtEmail" ValidationGroup="valNewsletterForm" /> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="true" 
        Skin="Web20" Style="position: absolute; top: 0px; left: 0px; width: 100%; height:100%" EnableSkinTransparency="true" 

    This is not filling the whole screen, instead is seems to be the size of the control container... It is centered on the screen though. Additionally i am unable to see the Web20 skin loading gif...

    Any help would be great

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    26 Sep 2009
    Link to this post
    Hi Duncan Evans,

    Thank you for using our services.

    I have taken a look at the user control that you have sent. It looked OK, I have modified it slightly so that the overlay takes up the whole screen. However there seems to be a problem with IE running in compatibility mode (versions earlier than IE 8) displaying the loading gif. You can try to manually add the gif to your theme with the following css:
    .RadAjax_Web20 .raDiv 
        background-imageurl(yourpath) !important; 

    I am attaching the updated user control and the loading image.

    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered