RadWindow Loading Image

3 posts, 1 answers
  1. Danilo
    Danilo avatar
    2 posts
    Member since:
    Jul 2012

    Posted 18 Aug 2012 Link to this post

    Hi
    Im trying to use radWindow like iFrame, when the initial page is loaded (Login.aspx), show the "loading" image but, when the page use Post to other page (Index.aspx), the window dont show the loading image.

    This is my code
        <telerik:RadWindow ID="wndw_ppal" runat="server" NavigateUrl="Login.aspx" CssClass="main-content"
             AutoSizeBehaviors="Width, Height, Default" KeepInScreenBounds="True"
            VisibleStatusbar="False" VisibleTitlebar="False"
            Behavior="Close" Behaviors="None"
            ShowContentDuringLoad="False" ShowOnTopWhenMaximized="False"
            VisibleOnPageLoad="True" Height="100%" Overlay="True" Width="100%"
                BorderWidth="0px" OnClientPageLoad="ResizeWindow">
  2. Answer
    Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 20 Aug 2012 Link to this post

    Hello Danilo,

    You can handle the OnClientPageLoad event of the RadWIndow (which you're doing right now) and add the following line to hide the loading image on subsequent postbacks.

    function OnClientPageLoad(sender, args) {
                sender.set_showContentDuringLoad(true);
            }

    So it will show the loading image when the page first loads in the RadWindow, but every postback performed in the RadWindow after that will not show the loading image.

    I hope that helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Danilo
    Danilo avatar
    2 posts
    Member since:
    Jul 2012

    Posted 24 Aug 2012 Link to this post

    Thanks Kevin!
    It works for me
Back to Top