RadWindow won't load page after a post back

3 posts, 0 answers
  1. Duy
    Duy avatar
    18 posts
    Member since:
    Nov 2008

    Posted 10 Aug 2009 Link to this post


    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. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 11 Aug 2009 Link to this post

    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.
  3. Duy
    Duy avatar
    18 posts
    Member since:
    Nov 2008

    Posted 12 Aug 2009 Link to this post

    It turned out that I was only setting the NaviateURL on if the page was not a postback from the code behind. Thanks!
Back to Top