The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientHtmlEditor.CommandExecuting Event

Occurs before a default or custom command has been executed and allows you to cancel the action.

Declaration

CommandExecuting: ASPxClientEvent<ASPxClientHtmlEditorCommandExecutingEventHandler<ASPxClientHtmlEditor>>

Event Data

The CommandExecuting event handler receives an argument of the ASPxClientHtmlEditorCommandExecutingEventArgs type. The following properties provide information specific to this event.

Property Description
cancel Gets or sets a value indicating whether the action which raised the event should be canceled.
(Inherited from ASPxClientCancelEventArgs)
commandName Gets the name of the processed command.
parameter Gets an optional parameter that complements the processed command.

Remarks

Use the CommandExecuting event handler to determine the processed command and cancel the action if needed.

To cancel the processed command, set the ASPxClientCancelEventArgs.cancel property to true.

After a command has been executed, the ASPxClientHtmlEditor.CommandExecuted event is raised.

Note

Do not use the CommandExecuting event handler to change the editor content HTML code or selection.

See Also