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

RadWindow won't load page after a post back

2 Answers 140 Views
Window
This is a migrated thread and some comments may be shown as answers.
Duy
Top achievements
Rank 1
Duy asked on 11 Aug 2009, 03:00 AM

I have a RadWindow that I am unable to display the contents of the URL that is specified in the NavigateUrl property after the page does a postback. When the page first loads, I can open the RadWindow with no problem. But after I click on an asp.net button, which causes a postback, the RadWindow opens but does not load the page.
 
I am using a Master page, and the content page contains a user control, that contains the RadWindowManager and the RadWindow declaration. Someone please help!!!!
 
This is the aspx  code to call the js function to open the window:
<asp:HyperLink ID="lockerSettingsLnk" Text="windowLink" runat="server" 
                    NavigateUrl="javascript:showRadWindow();" /> 
 

The Javascript Function
  function showRadWindow ()  
    { 
        var radWindow = window.radopen(null"myWindow"); 
        radWindow.argument = new Object(); 
        radWindow.argument.refreshParent = false
    } 
 
 
This is the aspx  code for a button:
<asp:Button ID="testButton" runat="server" OnClick="testButton_clicked"/> 

This is the aspx  code for the RadWindowManager and RadWindow declaration:
<telerik:RadWindowManager id="radWindowManager" runat="server" enableembeddedskins="True"
    <Windows> 
        <telerik:RadWindow id="mywindow" Behaviors="Close, Move, Resize, Maximize" ReloadOnShow="true" VisibleStatusbar="true" ShowContentDuringLoad="false" 
                 Left="150px" Modal="true" Runat="server" Width="600px" Height="450px" > 
        </telerik:RadWindow>         
    </Windows> 
</telerik:RadWindowManager>
 

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Aug 2009, 12:24 PM
Hello Duy,

The code that you posted looks OK and should not be the direct reason for the problem. I assume that the problem is somewhere in the logic that you are using in your project, however without having a closer look I cannot be sure.
Please, open a support ticket and send me a small sample project where this issue could be observed. I will check it and do my best to help.

Greetings,
Georgi Tunev
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.
0
Duy
Top achievements
Rank 1
answered on 12 Aug 2009, 01:33 PM
It turned out that I was only setting the NaviateURL on if the page was not a postback from the code behind. Thanks!
Tags
Window
Asked by
Duy
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Duy
Top achievements
Rank 1
Share this question
or