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

Window popup loading

3 Answers 93 Views
Window
This is a migrated thread and some comments may be shown as answers.
Sups
Top achievements
Rank 1
Sups asked on 05 Jan 2009, 05:59 AM
Hello Telerik,

We are having an issue with the popup window.

Following is the scenario:
1) From a parent page, open a popup window. Close the window.
2) Now open a second popup. when the second popup is about to open, the content of first window loads, and then the contents of the second window loads.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 05 Jan 2009, 12:29 PM
Hello Sups,

Could you please provide more information about your setup and what exactly is happening? It will be best to open a support ticket and send us the following:
  1. Small sample project where the problem can be reproduced
  2. step-by-step reproduction details along with some screenshots of the observed behavior
  3. detailed description of the desired behavior.
Once we have a better view over your case, we will do our best to help right away.
Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sups
Top achievements
Rank 1
answered on 15 Jan 2009, 04:51 AM
Hello Telerik,

Following is the code for opening a popup window:
function openWin()
{

    var

oManager = GetRadWindowManager();

 

 

    var oWnd = oManager.getWindowByName("UserListDialog");

 

    var url = "temp.aspx";
    if (oWnd.get_navigateUrl() != url) oWnd.setUrl(url);

    oWnd.setSize (590, 490);

    oWnd.show();  

 

    return false;
}

Following is the code for RadWindowManager:

 

<

telerik:RadWindowManager ID="RadWindowManager1" runat="server" Title="SmartSource List Management Service"

 

 

ClientCallBackFunction="CallBackFunction" Skin="Default" EnableEmbeddedSkins="false"

 

 

ReloadOnShow="true" VisibleStatusbar="false" ShowContentDuringLoad="false" PreserveClientState="false"

 

 

Behavior="close" Modal="true">

 

 

<Windows>

 

 

<telerik:RadWindow ID="UserListDialog" runat="server" Height="350" Width="550" />

 

 

<telerik:RadWindow ID="Export" runat="server" Height="250" Width="400" />

 

 

</Windows>

 

 

</telerik:RadWindowManager>

The issue is because of the property ReloadOnShow="true" in the RadWindowManager, the popup window loads twice. This can be confirmed by setting a debugger point in the page load event of the popup page.
If  ReloadOnShow is set as false, then the page is cached, which is against our requirement.
So we need to have ReloadOnShow  as true and also the popup window should not load twice.

Thanks.

 

0
Fiko
Telerik team
answered on 16 Jan 2009, 01:14 PM
Hello Sups,

Please upgrade to SP2. There we made some changes in RadWindow's logic and now when ReloadOnShow is set to true, windows loaded on the client do not load twice.


I hope this helps.

Kind regards,
Fiko
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Sups
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Sups
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or