ResourceStorageBase.Filter Property

Gets or sets a criteria string used to filter resources.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.1.Core.dll

Declaration

[DefaultValue("")]
public override string Filter { get; set; }
<DefaultValue("")>
Public Overrides Property Filter As String

Property Value

Type Default Description
String

String.Empty

A string, that is a logical expression.

Remarks

The expression syntax is described in the Criteria Language Syntax topic.

The Filter property returns the string equivalent of the CriteriaOperator specified by the AppointmentStorageBase.FilterCriteria property. When the Filter property is set, the AppointmentStorageBase.FilterCriteria obtains its value by using the CriteriaOperator.Parse method.

TIP

Use the SchedulerStorageBase.FilterAppointment and SchedulerStorageBase.FilterResource events to hide specific objects.

Examples

The following code instructs the Scheduler to display appointments with the Appointment.Subject containing the word "travel" whose Appointment.Start is August, 24 2017 or later, and resources whose caption (the Resource.Caption property value) begins with the letter 'N'.

schedulerStorage1.Appointments.Filter = "Contains([Subject], 'travel') And [Start] >= #2017-08-24#";
schedulerStorage1.Resources.Filter = "StartsWith([Caption], 'N')";

Implements

DevExpress.XtraScheduler.IPersistentObjectStorage<DevExpress.XtraScheduler.Resource>.Filter
See Also