SchedulerStorage.PrepareResourceFilterColumn Event
Fires when a column, representing a resource’s field, is added to the collection of filter columns contained within the FilterControl.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
#Event Data
The PrepareResourceFilterColumn event's data class is PrepareFilterColumnEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Cancel |
Gets or sets a value indicating whether the event should be canceled.
Inherited from Cancel |
Filter |
Gets or sets a field to which a filter criteria is applied. |
#Remarks
Important
This API is intended to be used with the legacy Scheduler
- Scheduler
Data replaces SchedulerStorage Storage - Appointment
Data replaces AppointmentStorage Storage - Resource
Data replaces ResourceStorage Storage - Appointment
Dependency replaces AppointmentData Storage Dependency Storage
You can use the FilterControl to display resources that meet specified conditions. To enable the control to filter resources contained within the SchedulerStorage, the FilterControl.SourceControl property should be set to the SchedulerStorage.Resources collection.
When the FilterControl begins creating a collection of columns which will be used to construct a logical expression (available via the FilterControl.FilterString property), the PrepareResourceFilterColumn event is raised for each added column. Handling this event enables you to substitute the column’s name with a custom text, or prepare a custom editor for specific value types. The column being added is available via the FilterColumn property of the event handler’s parameter.