[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Collapse]Pivot Grid
   [Expand]Getting Started
   [Expand]Fundamentals
   [Expand]Binding to Data
   [Collapse]Data Shaping
    [Expand]Summarization
     Grouping
    [Expand]Sorting
    [Collapse]Filtering
      Filter Drop-Down
      Filter Editor
      Filter Panel
      Filter Elements
      Group Filtering
      Filtering in Code
      OLAP Filtering Specifics
      Prefilter
    [Expand]Data Formatting
   [Expand]Data Analysis
   [Expand]Layout
   [Expand]Printing and Exporting
   [Expand]End-User Interaction
   [Expand]Appearance
   [Expand]MVVM Enhancements
   [Expand]UI Elements
   [Expand]End-User Capabilities
   [Expand]Examples
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Filter Elements

Filter Elements are separate controls within your application that can filter data in a bound PivotGridControl.

Tip

For an example, review our Demo Center application : Excel Style Filtering

Requires the installation of a WPF Subscription. Download

For element type information, review the Filter Element Types document section.

Expanded Add a Standalone Filter Element

  1. Add a filter element (the FilterElement (see FilterElement) class descendant) to the markup.
  2. Set the attached FilterElement.Context property to associate the filter element with the PivotGridControl's filter context.
  3. Assign the field name to the FilterElement.FieldName property.

The following code uses the CheckedListFilterElement (see CheckedListFilterElement) to filter the PivotGridControl's data by the fieldProductName values:

The image below shows the result:

Expanded Create a Custom Filter Drop-Down

  1. Create a data template that contains the FilterElement (see FilterElement) class descendant.
  2. Set the element's Name to PART_FilterElement.
  3. Assign the data template to the PivotGridField.CustomExcelStyleFilterPopupTemplate property.

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

The image below shows the result:

Note

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

Is this topic helpful?​​​​​​​