Back to Devexpress

ASPxClientHtmlEditor.Validation Event

aspnet-js-aspxclienthtmleditor-ed86e5cd.md

latest1.7 KB
Original Source

ASPxClientHtmlEditor.Validation Event

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

Declaration

ts
Validation: ASPxClientEvent<ASPxClientHtmlEditorValidationEventHandler<ASPxClientHtmlEditor>>

Event Data

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

PropertyDescription
errorTextGets or sets the error text to be displayed within the editor’s error frame if the editor’s validation fails.
htmlGets or sets the HTML markup that is the ASPxHtmlEditor’s content.
isValidGets 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

HTML Editor

ASPxClientHtmlEditor Class

ASPxClientHtmlEditor Members