Skip to main content

ISchedulerStorageBase.FilterDependency Event

Hides specific appointment dependencies in the Gantt view.

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

Declaration

event PersistentObjectCancelEventHandler FilterDependency

Event Data

The FilterDependency event's data class is PersistentObjectCancelEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets whether to cancel the operation.
Object Gets the persistent object (appointment, resource or appointment dependency) for which the event occurs. Inherited from PersistentObjectEventArgs.

Remarks

You can handle the FilterDependency event to hide specific appointment dependencies in the Gantt View. This event fires each time the layout of the Scheduler control changes (on resizing the control, adding a new appointment dependency, modifying existing appointment dependencies, etc.) You can also force the layout update by calling the SchedulerViewBase.LayoutChanged method.

The FilterDependency event occurs for each dependency in the AppointmentDependencyStorage. If the PersistentObjectCancelEventArgs.Cancel parameter is set to true for the currently processed dependency, then the Scheduler control does not display this appointment dependency.

Note

This event enables you to specify dependencies for display. Do not modify their properties, and do not add or remove dependencies within this event handler. An attempt to do so may result in an unhandled exception.

See Also