Skip to main content

GridCustomizeFilterMenuEventArgs.DataItems Property

Returns a list of column filter menu items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public List<GridFilterMenuDataItem> DataItems { get; }

Property Value

Type Description
List<GridFilterMenuDataItem>

The list of items.

Remarks

The Grid creates a list of items to populate the column filter menu drop-down window. The CustomizeFilterMenu event fires before the widow is shown and allows you to customize items.

The DataItems property returns a list of default items that contain unique column values (GridFilterMenuDataItem.Value) and corresponding display texts (GridFilterMenuDataItem.DisplayText).

You can customize, add, or remove items. Note that an item’s value cannot contain filter criteria. To implement complex filter criteria, create a filter menu template. For more information, see the following property description: FilterMenuTemplate.

Refer to the action description for more information and an example.

See Also