ASPxClientHtmlEditor.DialogInitialized Event
Occurs on the client side after a dialog has been initialized.
Declaration
DialogInitialized: ASPxClientEvent<ASPxClientHtmlEditorDialogInitializedEventHandler<ASPxClientHtmlEditor>>
Event Data
The DialogInitialized event's data class is ASPxClientHtmlEditorDialogInitializedEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
dialog | Gets a dialog object related to the event. |
dialogName | Gets the name of the dialog that has been initialized. |
Remarks
Handle the DialogInitialized event to perform specific actions on the client side each time any of the HTML Editor’s dialogs has been initialized. You can use the event parameter’s ASPxClientHtmlEditorDialogInitializedEventArgs.dialogName property to identify the name of the dialog as demonstrated in the code sample below.
<script>
function onDialogInitialized(s, e) {
if(e.dialogName === ASPxClientCommandConsts.INSERTIMAGE_DIALOG_COMMAND)
alert("insert image dialog");
}
</script>
<form id="form1" runat="server">
<dx:ASPxHtmlEditor runat="server">
<ClientSideEvents DialogInitialized="onDialogInitialized" />
</dx:ASPxHtmlEditor>
</form>
See Also