Client side event handler for all dialog events.
Note: This is a prototype, not a function. You should
provide a function that matches this prototype if you wish to
handle the corresponding event on the client side. The prototype
provides information about the arguments and return value of the
function you provide.
[JavaScript]
dialog_event_handler(
dialog, arg)
Parameters
-
dialog
- The Dialog object that triggered this event.
-
arg
- This parameter contains different information for different handlers:
Return Value
This function can return:
| Return Value |
Remarks |
| false |
Cancel the source event. As a result the dialog stays open. |
| 0 |
Only valid for ClientSideOnAccept. Return this value to indicate the dialog should not close, but the source event should not be canceled either. This is useful to allow a multiple-line TextBox in the dialog to accept enter key because by default, enter key closes the dialog. Returning false can prevent the dialog from closing but it also prevents the TextBox control from receiving the enter key. |
| All other return values. |
Ignored. |
Remarks
This is a prototype, not a function. You should provide this function if you wish to handle client side events raised by a Dialog object.
See Also
Event Handlers