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

RadWindow Loading Image

2 Answers 189 Views
Window
This is a migrated thread and some comments may be shown as answers.
Danilo
Top achievements
Rank 1
Danilo asked on 18 Aug 2012, 06:09 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Kevin
Top achievements
Rank 2
answered on 20 Aug 2012, 12:44 PM
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.
0
Danilo
Top achievements
Rank 1
answered on 24 Aug 2012, 05:15 PM
Thanks Kevin!
It works for me
Tags
Window
Asked by
Danilo
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Danilo
Top achievements
Rank 1
Share this question
or