DxDataGridCheckBoxColumn.FilterTextChecked Property

Specifies text displayed in the filter row for the checked state.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public string FilterTextChecked { get; set; }

Property Value

Type Description
String

The text for the checked state.

Remarks

The filter row allows users to filter the Data Grid by column values. This row displays the combobox editor for the checkbox column. The editor contains items whose text corresponds to column states: True, False, and (optionally) Indeterminate.

Data Grid CheckBoxColumn Standard FilterText

Use the following properties to show custom texts in the filter row’s combobox editor:

The following example demonstrates how to bind the checkbox column to an Enum object and specify custom filter texts for all three states.

<DxDataGrid Data="@Orders" ShowFilterRow="true" ...>
    ...
    <DxDataGridCheckBoxColumn Field="@nameof(Order.OrderStatus)"
                              FilterTextChecked="Delivered"
                              FilterTextUnchecked="Processing"
                              FilterTextIndeterminate="In transit"
                              ValueChecked="@OrderStatus.Delivered"
                              ValueUnchecked="@OrderStatus.Processing"
                              ValueIndeterminate="@OrderStatus.InTransit"
                              Caption="Order Status">
    </DxDataGridCheckBoxColumn>
</DxDataGrid>
}

@code {
    IEnumerable<Order> Orders;

    protected override async Task OnInitializedAsync() {
        Orders = await OrderRepository.Load();
    }
}

Data Grid CheckBoxColumn Custom FilterText

Run Demo: Data Grid - Filter Row

See Also