Skip to main content

DatePeriodsFilterElement Class

A date periods filter element that allows a user to apply predefined date filters.

Namespace: DevExpress.Xpf.Core.FilteringUI

Assembly: DevExpress.Xpf.Grid.v23.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public class DatePeriodsFilterElement :
    FilterElement

Remarks

Tip

Topic: Filter Elements

Run Demo: Date Periods

The image below shows a date periods filter element:

<dxg:GridControl x:Name="grid" ... />
<!-- ... -->
<dxfui:DatePeriodsFilterElement Context="{Binding FilteringContext, ElementName=grid}" FieldName="SalesDate" /> 
  • Beyond this year - dates that follow the current year.
  • Later this year - dates of the current year starting with the following month.
  • Later this month - dates of the current month that follow next week.
  • Next week - dates that belong to the following week.
  • Later this week - dates of the current week starting with the day after tomorrow.
  • Earlier this week - dates of the current week that are prior to yesterday.
  • Last week - dates of the previous week.
  • Earlier this year - dates of the current year that are prior to the current month.
  • Prior to this year - dates that are prior to the current year.

FilterModelTemplate Property

Use the FilterElement.FilterModelTemplate property to specify the filter element template.

Tip

Data Context (Binding Source): DatePeriodsFilterModel

See Also