Tag

PivotGridField.CustomExcelStyleFilterPopupTemplate Property

Gets or sets a template used to display the Excel-style filter drop-down for the current field. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v20.1.dll

Declaration

public DataTemplate CustomExcelStyleFilterPopupTemplate { get; set; }
Public Property CustomExcelStyleFilterPopupTemplate As DataTemplate

Property Value

Type Description
DataTemplate

A DataTemplate object displayed as the filter drop-down.

Examples

The following code snippet uses the CalendarFilterElement to filter the Order Date field values:

<dxpg:PivotGridField
    Area="FilterArea"
    Caption="OrderDate"
    FieldName="OrderDate"
    GroupInterval="Date"
    Name="fieldOrderDate"
    ImmediateUpdateExcelStyleFilter="False">
    <dxpg:PivotGridField.CustomExcelStyleFilterPopupTemplate>
        <DataTemplate>
            <dxfui:CalendarFilterElement Name="PART_FilterElement" />
        </DataTemplate>
    </dxpg:PivotGridField.CustomExcelStyleFilterPopupTemplate>
</dxpg:PivotGridField>

The image below shows the result:

pivot-filter-elements-drop-down-sample

NOTE

The complete sample project How to Create a Custom Filter Drop-Down is available in the DevExpress Examples repository.

See Also