Back to Devexpress

SchedulerViewBase.ResourcesPerPage Property

windowsforms-devexpress-dot-xtrascheduler-dot-schedulerviewbase.md

latest7.7 KB
Original Source

SchedulerViewBase.ResourcesPerPage Property

Gets or sets the number of resources shown at a time on a screen.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(0)]
[XtraSerializableProperty]
public int ResourcesPerPage { get; set; }
vb
<DefaultValue(0)>
<XtraSerializableProperty>
Public Property ResourcesPerPage As Integer

Property Value

TypeDefaultDescription
Int320

An integer value which represents the number of resources.

|

Remarks

When a scheduler’s appointments are assigned to resources, they can be grouped by resources and by dates. In this instance, if there are a lot of resources in the ResourceStorage it may make the scheduler’s area very crowded. To avoid this you can use the ResourcesPerPage property to specify the number of resources shown on the screen at the same time.

If the ResourcesPerPage property value is set to 0 , then all resources which are available in the ResourceStorage and have their Resource.Visible property set to true will be shown within the Scheduler Control.

Note

An end-user can control the number of resources per page at runtime via the resource navigator.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ResourcesPerPage property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-optimize-performance-large-dataset/CS/FetchAppointmentExample/Form1.cs#L35

csharp
schedulerControl1.GroupType = SchedulerGroupType.Resource;
schedulerControl1.ActiveView.ResourcesPerPage = 1;

winforms-scheduler-bind-sql-database-design-time/CS/SchedulerDbExample/Form1.cs#L21

csharp
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource;
schedulerControl1.DayView.ResourcesPerPage = 2;
schedulerControl1.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = true;

winforms-scheduler-mapping-converters/CS/SchedulerMappingConverterExample/Form1.cs#L30

csharp
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource;
schedulerControl1.DayView.ResourcesPerPage = 2;
schedulerControl1.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = true;

winforms-scheduler-manage-resources-runtime/CS/SchedulerResourcesManagement/Form1.cs#L106

csharp
private void ScrollToLastResource() {
    schedulerControl1.ActiveView.FirstVisibleResourceIndex = Math.Max(0, schedulerStorage1.Resources.Count - schedulerControl1.ActiveView.ResourcesPerPage);
    schedulerControl1.Services.Selection.SelectedResource = schedulerStorage1.Resources[schedulerStorage1.Resources.Count - 1];

winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/Form1.cs#L21

csharp
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource;
schedulerControl1.DayView.ResourcesPerPage = 2;
schedulerControl1.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = true;

winforms-scheduler-optimize-performance-large-dataset/VB/FetchAppointmentExample/Form1.vb#L34

vb
schedulerControl1.GroupType = SchedulerGroupType.Resource
schedulerControl1.ActiveView.ResourcesPerPage = 1
UpdateStatisticsInformationDisplayedOnTheForm()

winforms-scheduler-bind-sql-database-design-time/VB/SchedulerDbExample/Form1.vb#L23

vb
schedulerControl1.GroupType = SchedulerGroupType.Resource
schedulerControl1.DayView.ResourcesPerPage = 2
schedulerControl1.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = True

winforms-scheduler-mapping-converters/VB/SchedulerMappingConverterExample/Form1.vb#L32

vb
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource
schedulerControl1.DayView.ResourcesPerPage = 2
schedulerControl1.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = True

winforms-scheduler-manage-resources-runtime/VB/SchedulerResourcesManagement/Form1.vb#L109

vb
Private Sub ScrollToLastResource()
    schedulerControl1.ActiveView.FirstVisibleResourceIndex = Math.Max(0, schedulerStorage1.Resources.Count - schedulerControl1.ActiveView.ResourcesPerPage)
    schedulerControl1.Services.Selection.SelectedResource = schedulerStorage1.Resources(schedulerStorage1.Resources.Count - 1)

winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/Form1.vb#L23

vb
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource
schedulerControl1.DayView.ResourcesPerPage = 2
schedulerControl1.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = True

See Also

SchedulerViewBase Class

SchedulerViewBase Members

DevExpress.XtraScheduler Namespace