RadWindow provides the following client-side events:
-
OnClientBeforeShow - fires just before the RadWindow is shown. You can cancel the show of the RadWindow there
-
OnClientShow - fires after RadWindow is shown
-
OnClientActivate - fires when RadWindow becomes the active window
-
OnClientPageLoad - fires when the page in RadWindow completesloading
-
OnClientBeforeClose - fires just before the RadWindow is closed. You can cancel the closing of the RadWindow there.
-
OnClientClose - fires after RadWindow is being closed
-
OnClientDragStart - fires when the user starts dragging a RadWindow object
-
OnClientDragEnd - fires after RadWindow is being dropped on the page
-
OnClientResize - fires when a RadWindow is being resized
-
OnClientResizeStart - called when the user starts resizing the window.
-
OnClientResizeEnd - called after a resize operation ends.
-
OnClientAutoSizeEnd - fires when a RadWindow's autosize has finished
-
OnClientCommand - fires when the commands Pin, Reload, Minimize and Maximize are executed (when the user presses a titlebar button).
The properties expect the name of a clientside function to be called. When invoked, two arguments are supplied to the function - the sender[the RadWindow itself], and an events argument.
When using the
close() method to close a
RadWindow you can provide an argument to it and it can be extracted through the arguments of the
OnClientClose event by using their
get_argument() method. The
OnClientbeforeClose and
OnClientCommand can be cancelled by the
set_cancel(shouldCancel) method the event arguments object provides. Additionally, the
OnClientCommand provides the
get_commandName() method to get the command that was just fired.