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

[Solved] radopen(null,...) doesn't work

2 Answers 223 Views
Window
This is a migrated thread and some comments may be shown as answers.
Eliyahu Goldin
Top achievements
Rank 1
Eliyahu Goldin asked on 21 Jun 2008, 10:01 PM
After migration to the ASP.NET AJAX my radopen call stopped working.

<script type="text/javascript">
function openResetPassword()
{
window.radopen(null, 'winPasswordReset'); 
}
</script>

Here is the window. It is located inside an UpdatePanel:

<telerik:RadWindowManager id="radwPasswords" runat="server" EnableTheming="true">
<Windows>
<telerik:RadWindow runat="server" ID="winPasswordReset" NavigateUrl="~/Forms/PasswordReset.aspx" Modal="true" Height="380px" Width="520px" Behaviors="Move" />
</Windows>
</telerik:RadWindowManager>

This used to work in the RadWindow for ASP.NET.

This works now:
<script type="text/javascript">
function openResetPassword()
{
window.radopen("../Forms/PasswordReset.aspx", 'winPasswordReset'); // have no idea why NavigationUrl doesn't work
}
</script> 

But the size and behaviors parameters seem to be ignored.

2 Answers, 1 is accepted

Sort by
0
Eliyahu Goldin
Top achievements
Rank 1
answered on 23 Jun 2008, 07:25 AM
I got around the problem by using $find calls.

In another case I took the window out of UpdatePanel and it also helped.
0
Georgi Tunev
Telerik team
answered on 23 Jun 2008, 11:59 AM
Hello Eliyahu,

The code that you posted is working as expected on my side - I've added the test page below. This leads me to believe that the problem is somewhere else, however without having a closer look over your exact setup, I cannot tell what might be the problem.

Please open a support ticket and send me a small sample project which isolates this behavior - I will check it and get back to you with a solution right away.

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head id="Head1" runat="server"
    <title>Untitled Page</title> 
    <script type="text/javascript"
    function openResetPassword() 
    { 
        window.radopen(null, 'winPasswordReset');  
    } 
 
    </script> 
</head> 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <asp:UpdatePanel ID="UpdatePanel1" runat="server"
            <ContentTemplate> 
                <telerik:RadWindowManager ID="radwPasswords" runat="server" EnableTheming="true"
                    <Windows> 
                        <telerik:RadWindow runat="server" ID="winPasswordReset" NavigateUrl="http://www.google.com" 
                            Modal="true" Height="380px" Width="520px" Behaviors="Move" /> 
                    </Windows> 
                </telerik:RadWindowManager> 
                <button onclick="openResetPassword(); return false;">test</button> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
    </form> 
</body> 
</html> 


Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Eliyahu Goldin
Top achievements
Rank 1
Answers by
Eliyahu Goldin
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or