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

DxCheckBoxSettings.IndeterminateDisplayText Property

Specifies the display text string that corresponds to the checkbox editor’s indeterminate state.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public string IndeterminateDisplayText { get; set; }

#Property Value

Type Default Description
String null

A text string.

#Remarks

Specify the IndeterminateDisplayText property to change the display text string that corresponds to the checkbox editor’s indeterminate state. Grid and TreeList display this string in the following UI elements:

  • Column filter menu, if the column’s FilterMode is set to DisplayText.
  • Column cells, if the ShowCheckBoxInDisplayMode property is set to false and the component is in display mode.

The following code snippet displays custom strings in the Discontinued column:

Check Box Setting

@inject ProductService ProductData

<DxGrid Data="@products">
    <Columns>
        <DxGridDataColumn FieldName="ProductName" />
        <DxGridDataColumn FieldName="UnitPrice" />
        <DxGridDataColumn FieldName="UnitsInOrder" />
        <DxGridDataColumn FieldName="Discontinued">
            <EditSettings>
                <DxCheckBoxSettings ShowCheckBoxInDisplayMode="false"
                                    CheckedDisplayText="Yes"
                                    IndeterminateDisplayText="Unknown"
                                    UncheckedDisplayText="No" />
            </EditSettings>
        </DxGridDataColumn>
    </Columns>
</DxGrid>

@code {
    private Product[]? products;
    protected override async Task OnInitializedAsync() {
        products = await ProductData.GetData();
    }
}

To change the display text string that corresponds to the indeterminate state at runtime, use the ICheckBoxSettings.IndeterminateDisplayText property.

See Also