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

window.radopen ignoring attributes

1 Answer 41 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kim
Top achievements
Rank 1
Kim asked on 09 Nov 2013, 08:10 PM
I have the following code in a aspx page. Thew window opens but it ignores the size settings. Even if i delete the RadWindowManager from the page it still opens. It seems as if it ignores the RadWindowManager on the page and just does what it wants. what am i doing wrong?



                function EditClick(sender, args) {
                    window.radopen("campEdit.aspx?campID=" + sender,"CampEdit");
                }



 <telerik:RadWindowManager ID="RadWindowManager1" runat="server" onclientclose="RadWindowManager1_Close" CssClass="TelerikModalOverlay">
        <Windows>
            <telerik:RadWindow ID="CampEdit" runat="server" Title="Editing record" Height="675px"
            Width="635px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"
            Modal="true" VisibleStatusbar="false"  AutoSize="false" Behaviors="Close" />

        </Windows>
    </telerik:RadWindowManager>  


[EDIT] 

It seems as if it is functioning off the RadWindowManager  on the master page. How do i get it to use the RadWindowManager on the child page? 



1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 11 Nov 2013, 02:59 PM
Hi Kim,

Your problem and its solutions are described here: http://www.telerik.com/help/aspnet-ajax/radwindow-troubleshooting-wrong-window-opened.html.
Also, you can use the client-side API of the control to modify it after showing it: http://www.telerik.com/help/aspnet-ajax/window-programming-radwindow-methods.html, e.g.:
var wnd =  window.radopen("campEdit.aspx?campID=" + sender,"CampEdit");;
wnd.setSize(800, 600);

Or even set the desired dimensions in the radopen method: http://www.telerik.com/help/aspnet-ajax/window-programming-opening.html:
window.radopen("campEdit.aspx?campID=" + sender,"CampEdit", width, height);



Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Window
Asked by
Kim
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or