Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GlobalOptions.ShowValidationIcon Property

Specifies whether Blazor editors show validation icons. Affects only standalone editors.

Namespace: DevExpress.Blazor.Configuration

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(true)]
public bool ShowValidationIcon { get; set; }

#Property Value

Type Default Description
Boolean true

true to display validation icons; otherwise, false.

#Remarks

DevExpress input editors support data validation. You can add editors to the Blazor’s standard EditForm. This form validates user input based on data annotation attributes defined in a model.

Data editors can display validation icons and colored outlines based on validation results. Editors with default settings display red outlines and error icons Error when validation fails. However, you can use the following properties to change how editors display their validation status:

  • The ShowValidationIcon global property - Specifies whether Blazor editors should show validation icons - error Error or success Success.

  • The ShowValidationSuccessState global property - Specifies whether Blazor editors should indicate the validation success status: become marked with green outlines and shows a success icon Success.

Note

  • The ShowValidationIcon option affects only standalone editors. It does not affect auto-generated editors displayed in DxGrid and DxTreeList rows/cells.
  • When ShowValidationSuccessState is true and ShowValidationIcon is false, only green outlines indicate the success status.
  • You can also specify ShowValidationSuccessState and ShowValidationIcon properties for each editor individually.

You can specify the ShowValidationIcon global option in a few different ways:

See Also