GlobalOptions.ShowValidationIcon Property
Specifies whether Blazor editors show validation icons.
Namespace: DevExpress.Blazor.Configuration
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(false)]
public bool ShowValidationIcon { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
Remarks
Use the ShowValidationIcon
global option to specify whether Blazor editors should show validation icons - error or success .
You can specify this option in a few different ways:
Call the AddDevExpressBlazor(IServiceCollection, Action<GlobalOptions>) method.
using DevExpress.Blazor; builder.Services.AddDevExpressBlazor(configure => configure.ShowValidationIcon = true);
Call the services.Configure method that registers a configuration instance with the specified global option’s value.
using DevExpress.Blazor; using DevExpress.Blazor.Configuration; builder.Services.Configure<GlobalOptions>((options) => options.ShowValidationIcon = true);
Define the global option’s value in the
appsettings.json
file.{ "DevExpress": { "ShowValidationIcon": "true" } }
Call the services.Configure method. Use the ConfigurationBinder.Bind method to register a configuration instance with the specified global option’s value.
using DevExpress.Blazor; using DevExpress.Blazor.Configuration; builder.Services.Configure<GlobalOptions>(options => builder.Configuration.Bind("DevExpress", options));
You can also specify the ShowValidationIcon property for each editor individually.