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

[Solved] Using Window without WindowManager

1 Answer 245 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark Rowe
Top achievements
Rank 1
Mark Rowe asked on 12 Oct 2007, 06:02 PM
Hey,

I noticed with your examples that you are using the WindowManager.  In the overview of the new Window Control with Prometheus, you say you do not need the window manager.  Is there anything specific I need to do in order to use it without the Window Manager?

I ran two test using the following code.  It works when you have the Window Manager, but does not work without the Window Manager.

 

<script type="text/javascript">  
function openRadWindow(url, windowname)  
{  
    var oWnd = radopen(url, windowname);  
}  
</script> 
 
<asp:LinkButton ID="btnEditProfile" runat="server" Text="Edit Profile" OnClientClick="openRadWindow('../IT/EditProfile.aspx', 'Edit Profile'); return false;"></asp:LinkButton></span>  
 
<telerik:RadWindowManager ID="test" runat="server">  
<Windows> 
<telerik:RadWindow ID="testing" runat="server"></telerik:RadWindow> 
</Windows> 
</telerik:RadWindowManager> 
 

Thanks,
Bob

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 15 Oct 2007, 02:01 PM
Hi Bob Erwin,

To minimize the load on the page, radopen, radalert, radconfirm and radprompt are only available for the user when a RadWindowManager is present on the page.

To open a single RadWindow that is declared on your page, you need to get a reference to it using the ASP.NET AJAX $find() method and call show():

<script type="text/javascript">     
    function openRadWindow(url, windowname)     
    {     
        var oWnd = $find("testing");  
        oWnd.setUrl(url);  
        oWnd.set_Title(windowname);  
        oWnd.show();   
    }     
</script> 
 
<asp:LinkButton ID="btnEditProfile" runat="server" Text="Edit Profile" OnClientClick="openRadWindow('../IT/EditProfile.aspx', 'Edit Profile'); return false;"></asp:LinkButton></span>  
<telerik:RadWindow ID="testing" runat="server">  
</telerik:RadWindow> 


I hope this helps.

Sincerely yours,
Georgi Tunev
the Telerik team

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