Back to Devexpress

SchedulerControl.AppointmentFilterCriteria Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-82a44709.md

latest2.9 KB
Original Source

SchedulerControl.AppointmentFilterCriteria Property

Gets or sets the scheduler’s filter criteria for appointments. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public CriteriaOperator AppointmentFilterCriteria { get; set; }
vb
Public Property AppointmentFilterCriteria As CriteriaOperator

Property Value

TypeDescription
CriteriaOperator

A DevExpress.Data.Filtering.CriteriaOperator object which represents filter criteria.

|

Remarks

Use the FilterAppointment event to override the filter criteria. The event’s Visible property returns false for appointments filtered by the AppointmentFilterCriteria or AppointmentFilterString property.

The example below shows how to set a filter criteria.

csharp
scheduler.AppointmentFilterCriteria = GroupOperator.Combine(GroupOperatorType.Or, new BinaryOperator("LabelId", 1, BinaryOperatorType.Equal),
    new BinaryOperator("LabelId", 2, BinaryOperatorType.Equal));
vb
scheduler.AppointmentFilterCriteria = GroupOperator.Combine(GroupOperatorType.Or, New BinaryOperator("LabelId", 1, BinaryOperatorType.Equal),
    New BinaryOperator("LabelId", 2, BinaryOperatorType.Equal))

The following example shows how to set the same filter criteria by parsing a filter string.

csharp
scheduler.AppointmentFilterCriteria = CriteriaOperator.Parse("[LabelId] In (1, 2)");
vb
scheduler.AppointmentFilterCriteria = CriteriaOperator.Parse("[LabelId] In (1, 2)")

See Creating Criteria for more information on criteria syntax.

See Also

AppointmentFilterString

TimeRegionFilterCriteria

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace