windowsforms-devexpress-dot-xtrascheduler-dot-schedulerviewbase.md
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
[DefaultValue(0)]
[XtraSerializableProperty]
public int ResourcesPerPage { get; set; }
<DefaultValue(0)>
<XtraSerializableProperty>
Public Property ResourcesPerPage As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | 0 |
An integer value which represents the number of resources.
|
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
schedulerControl1.GroupType = SchedulerGroupType.Resource;
schedulerControl1.ActiveView.ResourcesPerPage = 1;
winforms-scheduler-bind-sql-database-design-time/CS/SchedulerDbExample/Form1.cs#L21
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource;
schedulerControl1.DayView.ResourcesPerPage = 2;
schedulerControl1.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = true;
winforms-scheduler-mapping-converters/CS/SchedulerMappingConverterExample/Form1.cs#L30
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
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
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
schedulerControl1.GroupType = SchedulerGroupType.Resource
schedulerControl1.ActiveView.ResourcesPerPage = 1
UpdateStatisticsInformationDisplayedOnTheForm()
winforms-scheduler-bind-sql-database-design-time/VB/SchedulerDbExample/Form1.vb#L23
schedulerControl1.GroupType = SchedulerGroupType.Resource
schedulerControl1.DayView.ResourcesPerPage = 2
schedulerControl1.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = True
winforms-scheduler-mapping-converters/VB/SchedulerMappingConverterExample/Form1.vb#L32
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
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
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource
schedulerControl1.DayView.ResourcesPerPage = 2
schedulerControl1.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = True
See Also