TcxCustomEditProperties.ValidationOptions Property
Contains a set of flags that specify how the editor handles and displays its validation errors.
#Declaration
property ValidationOptions: TcxEditValidationOptions read; write; default [evoRaiseException];
#Property Value
Type |
---|
Tcx |
#Remarks
You can set any combination of the following flags for the ValidationOptions property.
Flag | Description |
---|---|
evo | If set, an exception is raised to display the error message if validation fails. In addition, the error message is displayed in a hint window when an end-user hovers the mouse pointer over an error icon (see the evo To enable raising exceptions in spin editors, make certain that in addition to the evo |
evo | If set, the editor displays an error icon if validation fails. Hovering the mouse pointer over this icon displays a hint window with the error message. Below are the details on how you can customize the default error indication. General Information The error icon to be displayed is determined by the Error Standalone Editor Validation If a standalone editor fails validation, the Tcx After that, the standalone editor displays the error icon next to its input field. Rather than providing a custom error icon, you can use any of the default error icons (Error, Warning, or Information) that are shipped with the Express In-place Editor Validation You can visualize validation errors in any cell associated with an in-place editor in the Express As with the standalone editor validation, you can assign any of the default error icons stored by the cx |
evo | If set, an end-user can move focus from the editor if it fails validation. Otherwise, focus cannot be moved to any other control unless validation succeeds. Note that evo |
Use the following demos to learn how to tailor the ValidationOptions property, the OnValidateDrawValue and Properties.OnValidate events for editor validation:
For standalone editors, see the EditorsValidationDemo shipped with the ExpressEditors Library;
For in-place editors, see the EditorsInPlaceValidationDemo shipped with the ExpressQuantumGrid, ExpressQuantumTreeList, and ExpressVerticalGrid Suites.
The default value of the ValidationOptions property is [evoRaiseException].