Skip to main content

ASPxClientHtmlEditor.Validation Event

Allows you to specify whether the value entered into the ASPxHtmlEditor is valid.

Declaration

Validation: ASPxClientEvent<ASPxClientHtmlEditorValidationEventHandler<ASPxClientHtmlEditor>>

Event Data

The Validation event's data class is ASPxClientHtmlEditorValidationEventArgs. The following properties provide information specific to this event:

Property Description
errorText Gets or sets the error text to be displayed within the editor’s error frame if the editor’s validation fails.
html Gets or sets the HTML markup that is the ASPxHtmlEditor’s content.
isValid Gets or sets a value specifying whether the validated value is valid.

Remarks

The Validation event is raised when it is required to validate the ASPxHtmlEditor’s value on the client side.

You can provide a text explaining why the validation has failed, by assigning a descriptive text to the ASPxClientHtmlEditorValidationEventArgs.errorText property. When the ASPxClientHtmlEditorValidationEventArgs.isValid property is false, the specified text will be displayed within a specific message box.

See Also