A newer version of this page is available. Switch to the current version.

SchedulerSmartSyncOptions.GroupType Property

Gets or sets the type of grouping used for creating tri-fold scheduler report pages if the DXSchedulerPrintAdapter.EnableSmartSync option is switched on.

Namespace: DevExpress.Xpf.Scheduler.Reporting

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

Declaration

public SchedulerGroupType GroupType { get; set; }
Public Property GroupType As SchedulerGroupType

Property Value

Type Description
SchedulerGroupType

A SchedulerGroupType enumeration member specifying the grouping for the SmartSync printing.

Remarks

IMPORTANT

You are viewing documentation for the legacy WPF Scheduler control. If you're starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

If the GroupType is set to the SchedulerGroupType.Resource, the report starts with the first resource for all dates from the DXSchedulerPrintAdapter.TimeInterval, then goes to the next resource and so on.

If the GroupType is set to the SchedulerGroupType.Date, the report starts with the first date from the DXSchedulerPrintAdapter.TimeInterval for all available resources, then goes to the next date and so on.

NOTE

You can filter resources passed to the report by handling the DXSchedulerPrintAdapter.ValidateResources event.

Examples

This example demonstrates how to enable the SmartSync feature for scheduler tri-fold reports (for example, the TrifoldResource.schrepx report that is, by default, placed in C:\Users\Public\Documents\DevExpress Demos 18.2\Components\Data\SchedulerReportTemplates\). Use the DXSchedulerPrintAdapter.EnableSmartSync and DXSchedulerPrintAdapter.SmartSyncOptions properties.

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduler"
        Title="MainWindow" Height="491" Width="691" >
    <Grid>
        <!-- ... -->
        <dxsch:SchedulerControl x:Name="scheduler" >
            <!-- ... -->
        </dxsch:SchedulerControl>
        <dxsch:DXSchedulerControlPrintAdapter x:Name="printAdapter" 
                                              SchedulerControl="{Binding ElementName=scheduler}"
                                              EnableSmartSync="True">
            <dxsch:DXSchedulerControlPrintAdapter.SmartSyncOptions>
                <dxsch:SchedulerSmartSyncOptions GroupType="Resource"/>
            </dxsch:DXSchedulerControlPrintAdapter.SmartSyncOptions>
        </dxsch:DXSchedulerControlPrintAdapter>
    </Grid>
</Window>

Implements

See Also