Skip to main content

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.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

public event VisibleResourcesChangedEventHandler VisibleResourcesChanged

#Event Data

The VisibleResourcesChanged event's handler receives an argument of the VisibleResourcesChangedEventArgs type. 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 SchedulerStorage.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