Skip to main content

OptionsView.ShowOnlyResourceAppointments Property

Gets or sets a value indicating whether to show appointments that do not belong to any resource in the current scheduling area.

Namespace: DevExpress.Xpf.Scheduler

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

#Declaration

public bool ShowOnlyResourceAppointments { get; set; }

#Property Value

Type Description
Boolean

true to display only the appointments that are associated with resources; false to display all appointments.

#Property Paths

You can access the OptionsView.ShowOnlyResourceAppointments property from the following objects:

Object Type Path to ShowOnlyResourceAppointments
SchedulerControl
.OptionsView.ShowOnlyResourceAppointments

#Remarks

An appointment does not belong to any particular resource if the appointment's Appointment.ResourceId property is set to the Resource.Empty value. If an appointment does not belong to any particular resource, it is considered to be assigned to all resources. By default, these appointments are shown for all resources simultaneously.

If you want to display only the appointments associated with a particular resource, set the ShowOnlyResourceAppointments property to true.

#Examples

This example demonstrates how to specify the SchedulerControl's presentation using the SchedulerControl.OptionsView property.

<dxsch:SchedulerControl.OptionsView>
    <dxsch:OptionsView FirstDayOfWeek="Tuesday" ShowOnlyResourceAppointments="True">
        <dxsch:OptionsView.NavigationButtonOptions>
            <dxsch:NavigationButtonOptions Visibility="Auto" AppointmentSearchInterval="2"/>
        </dxsch:OptionsView.NavigationButtonOptions>
    </dxsch:OptionsView>
</dxsch:SchedulerControl.OptionsView>
See Also