Skip to main content
All docs
V24.2

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

DxEditSettings.ShowValidationSuccessState Property

Specifies whether the editor indicates successful validation. When an input value is valid, the editor displays a green outline and can show a success icon.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public bool? ShowValidationSuccessState { get; set; }

#Property Value

Type Default Description
Nullable<Boolean> null

true to indicate the validation success status; otherwise, false.
null to inherit the value from the GlobalOptions.ShowValidationSuccessState property.

#Remarks

Set the ShowValidationSuccessState to true to indicate the validation success status in auto-generated editors displayed in Grid and TreeList components. Refer to the following topics for more information:

razor
<DxGrid Data="@products" PageSize="4"
        EditMode="GridEditMode.EditRow">
    <Columns>
        <DxGridCommandColumn />
        <DxGridDataColumn FieldName="ProductID" DisplayFormat="00000">
            <EditSettings>
                <DxTextBoxSettings ShowValidationSuccessState="true" />
            </EditSettings>
        </DxGridDataColumn>
        <DxGridDataColumn FieldName="ProductName" />
        <DxGridDataColumn FieldName="UnitPrice"  DisplayFormat="c" />
        <DxGridDataColumn FieldName="UnitsInOrder" />  
    </Columns>
</DxGrid>
See Also