| Method |
Description |
| setSize |
Sets the size (width and height) of the window. |
| moveTo |
Sets the position (left, top) of the window. |
| center |
Centers the window in the middle of the page. |
| show |
Shows the window if it was invisible. If the window does not exist, show creates it. |
| hide |
Makes the window invisible. |
| minimize |
Minimizes the window. |
| maximize |
Maximizes the window. |
| restore |
Restores the window to its normal (non-minimized) state. |
| setUrl |
Changes URL of window. |
| get_navigateUrl |
Gets the URL of the window. |
| reload |
Reloads the content page in the window. The page should come from the same server as is the parent page. |
| close |
Closes the window. |
| argument |
An object that is transferred between the calling page and the window dialog. |
| BrowserWindow |
Returns a reference to the parent page's document. This is useful for calling functions on the parent page. |
| get_windowManager |
Returns a reference to the RadWindowManager. As an alternative you can use the ASP.NET AJAX convention and use $find(), e.g:
var oManager = $find("<%=WindowManager1.ClientID%>");
|
| set_modal |
Sets the modality of the window. set_modal accepts a boolean value as an argument, e.g. oWnd.set_modal(true); |
setActive
|
Makes the window the active (topmost) window on the page. |
| set_width |
Sets the window width. |
| set_height |
Sets the window height. |
| get_width |
Gets the window's initial width. |
| get_height |
Gets the window's initial height. |
| set_title |
Sets window title. Note
that if the content page has its own title set in the @Page directive
or in the <head> section, this title will override the
RadWindow's one. |
| set_status |
Displays content in the window status bar. |
| get_contentFrame |
Returns
a reference to RadWindow's content area (IFRAME). One possible use is
to to call a function that is declared in the RadWindow's page from the
parent page. Another possible use is to modify the DOM. |
| isModal |
Returns true if the window is modal. |
| isClosed |
Returns true if the window is currently closed. |
| isPinned |
Returns true if the window is currently pinned. |
| togglePin |
Toggles whether the RadWindow is pinned. |
| isMaximized |
Returns true if the window is currently maximized. |
| isMinimized |
Returns true if the window is currently minimized. |
| isVisible |
Returns true if the window is currently visible. |
| isActive |
Returns true if the window is the currently active one. |
| set_offsetElementID |
Sets the OffsetElementId for the RadWindow. |
| set_behaviors |
Sets
the Behaviors property of the RadWindow object. Its argument must be a
value or combination of values from the Telerik.Web.UI.WindowBehaviors
enum. To set more than one behavior, use "+". Possible values are None, Resize, Minimize, Close,
Pin, Maximize, Move, Reload, Default
e.g: oWnd.set_behaviors( Web.UI.WindowBehaviors.Move + Web.UI.WindowBehaviors.Close ) |
| set_openerElementID |
Sets the OpenerElementId for the RadWindow. |
| add_close |
Sets a function that will be called when a RadWindow is closed. |
| getWindowBounds |
Returns the size and position of the RadWindow
e.g:
var bounds = oWnd.getWindowBounds();
bounds.x; //returns the current left position of the RadWindow
bounds.y; //returns the current top position of the RadWindow
bounds.height; //returns the current height of the RadWindow
bounds.width; //returns the current width of the RadWindow
|