SchedulerControl.VisibleResourcesChanged Event

Occurs when resources displayed in the scheduler view are changed, or the number of visible resources is changed, or the scheduler switches views.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.1.dll

Declaration

public event VisibleResourcesChangedEventHandler VisibleResourcesChanged
Public Event VisibleResourcesChanged As VisibleResourcesChangedEventHandler

Event Data

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

Property Description
NewFirstVisibleResourceIndex Gets the index of the first (the leftmost or the topmost, depending on the view) resource displayed in the view after the change of visible resources occurs.
NewResourcePerPage Gets the new number of displayed resources.
OldFirstVisibleResourceIndex Gets the index of the first (the leftmost or the topmost, depending on the view) resource displayed in the view before the change of visible resources occurs.
OldResourcePerPage Gets the number of displayed resources before the change takes place.

Remarks

The Resource Navigator control allows end-users to navigate resources or change the number of visible resources (the SchedulerViewBase.ResourcesPerPage property). When the end user performs this action, the VisibleResourcesChanged event occurs.

The VisibleResourcesChanged event allows you to specify a filter for displayed resources or use the SchedulerStorageBase.FetchAppointments event to load appointments for visible resources only. This may be useful when a large number of resources affect the scheduler performance.

See Also