New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

RadWindowManager Object

This help article explains the client-side API of the RadWindowManager. It can be used to:

RadWindowManager client-side methods

MethodDescription
cascadeCascades the window objects.
closeActiveWindowClose the active window.
closeAllCloses all windows.
get_windowsReturns a reference to the array of RadWindow objects managed by the RadWindowManager.
getActiveWindowReturns a reference to the current active window.
getWindowByIdReturns a reference to a RadWindow. The Id passed as a parameter must be the RadWindow's Client-side ID property. It is subject to change by the framework in case an INaming container is a parent of the RadWindowManager.
getWindowByNameReturns a reference to a RadWindow. The Name passed as a parameter is the RadWindow's Server-side ID property. This allows you to get a reference to a specific RadWindow with the ID from your markup without the need to use ClientIDs.
maximizeAllMaximizes all windows.
minimizeActiveWindowMinimizes the currently active window.
minimizeAllMinimizes all windows.
openOpens a new or existing window. Can be used to change the URL, size and position of an existing window as well. Returns a reference to the RadWindow. See the Opening Windows help article for details and examples.
radalertDisplays a RadAlert dialog box. Requires a string for the message to be shown. Can take two integers for the width and height and a string for the title. Returns the RadWindow instance of the dialog window.
radconfirmDisplays a RadConfirm dialog box. Requires a string for the message to be shown. Can take a function for the callback function, two integers for the width and height, a null value should be passed for the callerObj and can also take a string for the title. Returns the RadWindow instance of the dialog window.
radpromptDisplays a RadConfirm dialog box. Requires a string for the message to be shown. Can take a function for the callback function, two integers for the width and height, a null value should be passed for the callerObj, can also take a string for the title and a string as an initial value. Returns the RadWindow instance of the dialog window.
restoreActiveWindowRestores the active window if it was minimized or maximized.
restoreAllRestores all windows.
showAllShows all windows.
tileTiles the window objects.

Examples

JavaScript
function UseWindowManager()
{
	//Getting rad window manager
	var oManager = GetRadWindowManager();
	//Get an existing window DialogWindow using getWindowByName
	var oWnd = oManager.getWindowByName("DialogWindow");
	oWnd.setUrl("http://www.google.com");
	//Call GetActiveWindow to get the active window
	var oActive = oManager.getActiveWindow();
	oActive.center();
	//Open a new window using using default settings
	var oNew = oManager.open("http://www.google.com","NewWindow");
	// cause all windows to cascade
	oManager.cascade();
	// list all windows in a textarea with id txtShowWindows
	var txtShowWindows = document.getElementById("txtShowWindows");
	var windows = oManager.get_windows();
	for (var i = 0; i < windows.length; i++)
	{
		txtShowWindows.value += windows[i].get_name() + ": " + windows[i].get_navigateUrl() + "\n";
	}
}

See Also

In this article
ExamplesSee Also
Not finding the help you need?
Contact Support