This is a migrated thread and some comments may be shown as answers.
Open RadWindow from Javascript?
2 Answers 128 Views
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 15 Dec 2011, 04:21 PM
This should be simple but I am getting an error 'oWnd is Null' in Firefox error console when the function is called
The context is an asp.net vb child page which uses a masterpage containing the Script Manager.

Can someone put me out of my misery?

The window is simply
<telerik:RadWindow ID="RadWindow1" runat="server">
   </telerik:RadWindow>

and the javascript is 

<script type="text/javascript">
        function UseRadWindow() {
            var oWnd = $find("<%= RadWindow1.ClientID %>");
            oWnd.show();
            oWnd.setSize(400, 400);
            oWnd.setUrl("http://www.yahoo.com");
            oWnd.minimize();
            oWnd.maximize();
            oWnd.restore();
        }
   </script>

2 Answers, 1 is accepted

Sort by
0
Clive Hoggar
Top achievements
Rank 1
answered on 15 Dec 2011, 05:43 PM
Acting on a hunch I changed 'RegisterWithScriptManager' to false in the window properties...
It now works. Not sure why!
0
Kevin
Top achievements
Rank 2
answered on 16 Dec 2011, 02:02 PM
Hello Clive,

When do you call the UseRadWindow function? Is it during the page load?
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Clive Hoggar
Top achievements
Rank 1
Kevin
Top achievements
Rank 2
Share this question
or