Back to Devexpress

GridCustomizeFilterMenuEventArgs.DataItems Property

blazor-devexpress-dot-blazor-dot-gridcustomizefiltermenueventargs.md

latest2.0 KB
Original Source

GridCustomizeFilterMenuEventArgs.DataItems Property

Returns a list of column filter menu items.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public List<GridFilterMenuDataItem> DataItems { get; }

Property Value

TypeDescription
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 additional information, see the following property description: FilterMenuTemplate.

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

See Also

GridCustomizeFilterMenuEventArgs Class

GridCustomizeFilterMenuEventArgs Members

DevExpress.Blazor Namespace