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.v19.2.dll

Declaration

public class DatePeriodsFilterElement :
    FilterElement
Public Class DatePeriodsFilterElement
    Inherits FilterElement

Remarks

TIP

Topic: Filter Elements

TIP

Demo: Date Periods

Requires a WPF Subscription. Download

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