Skip to main content

ReportViewBase.VisibleResourceCount Property

Gets or sets the maximum number of resources displayed in one section.

Namespace: DevExpress.XtraScheduler.Reporting

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

NuGet Package: DevExpress.Win.SchedulerReporting

Declaration

[DefaultValue(1)]
[XtraSerializableProperty]
public int VisibleResourceCount { get; set; }

Property Value

Type Default Description
Int32 1

An integer, representing the number of resources.

Remarks

Use this property to specify the maximum number of resources displayed simultaneously in one section when the ReportViewBase.GroupType is not SchedulerGroupType.None. If the VisibleResourceCount value is set to 0, all resources are shown.

Consider the ReportDayView. If the Group Type is set to Resources, the time cells are iterated first by resources, then by dates. It means that for a given day interval, specified via the ReportDayView.VisibleDayCount, all resource columns are printed and the next interval starts printing only after all resources are printed for all dates within the current interval.

The layout is constructed as follows. For each date the VisibleResourceCount of resources is printed, then the next date starts with the same resources. When all dates within the interval are printed with the first set of resources, which consists of VisibleResourceCount items, the next VisibleResourceCount resource items are taken to print the same date interval with a new set of resources. When all resources are printed, the next interval consisting of ReportDayView.VisibleDayCount days begins. The iteration restarts.

Note

To filter resources for the report, use the SchedulerPrintAdapter.ValidateResources event.

See Also