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

RadWindow ignoring settings

1 Answer 84 Views
Window
This is a migrated thread and some comments may be shown as answers.
Josh Wood
Top achievements
Rank 1
Josh Wood asked on 09 Sep 2009, 01:28 PM
I am having a problem with my RadWindows ignoring the settings I specify in its definition.

Here's the setup:

I have a default.aspx page where this ScriptManager definition exists inside my <body><form> tags:
    <asp:ScriptManager ID="ScriptManager" runat="server" /> 

Inside the default.aspx page, we use a placeholder where we can load our customer user controls.  Inside one of these controls, I have the following RadWindowManager definition:

<telerik:RadWindowManager ID="Singleton" VisibleStatusbar="true" Behaviors="Close,Resize,Move" DestroyOnClose="false" runat="server" > 
    <Windows> 
        <telerik:RadWindow ID="objEmailWindow" InitialBehavior="Maximize" DestroyOnClose="false" Width="650" Height="650" runat="server" ShowContentDuringLoad="false" /> 
        <telerik:RadWindow ID="objMoveFileWindow" InitialBehavior="Maximize" DestroyOnClose="false" Width="650" Height="325" runat="server" ShowContentDuringLoad="false" /> 
    </Windows> 
</telerik:RadWindowManager> 

Inside this control when I need to open a window, I call this Javascript function:
        function openWindow(url, windowName) { 
            window.radopen(url, windowName); 
        } 

Here's where it gets weird...The window opens, but the size is not what I specify in the RadWindowManager settings and all the behaviors are ignored.  Here's a link to a screenshot.  I have tried to apply the settings to the RadWindowManager instead of the RadWindow and the issue is still there.

Now, if I put the ScriptManager in the control itself, the window behaves properly.  Unfortunately, this is not a solution because we need the scriptmanager on the default page as well which will give us 2 script managers defined on a single page.  Also, this is a customer solution and I cannot zip it up and send it.

Any ideas?








1 Answer, 1 is accepted

Sort by
0
Josh Wood
Top achievements
Rank 1
answered on 09 Sep 2009, 01:47 PM
Nevermind.  I found the fix going through some old posts.  I put the RadWindowManager on the default page and invoke top.radpen in the control.

J.
Tags
Window
Asked by
Josh Wood
Top achievements
Rank 1
Answers by
Josh Wood
Top achievements
Rank 1
Share this question
or