Skip to main content

NavigationButtonOptions.AppointmentSearchInterval Property

Specifies the time span used by Navigation Buttons to search for the nearest appointments (in days), to limit it to a reasonable range.

Namespace: DevExpress.Xpf.Scheduler

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

#Declaration

public TimeSpan AppointmentSearchInterval { get; set; }

#Property Value

Type Description
TimeSpan

A TimeSpan value that specifies the search range.

#Property Paths

You can access the NavigationButtonOptions.AppointmentSearchInterval property from the following objects:

Object Type Path to AppointmentSearchInterval
OptionsView
.NavigationButtonOptions.AppointmentSearchInterval
SchedulerControl
.OptionsView.NavigationButtonOptions.AppointmentSearchInterval

#Remarks

When Navigation Buttons search for the nearest appointment, the following problem may arise. If the calculation algorithm encounters recurring appointments in the filtered appointment subset, it searches for the end of the recurrence chain. If the appointment does not specify the recurrence end date, the search operation results in an endless loop, which hangs the application.

To solve this problem, specify the AppointmentSearchInterval property or use the SchedulerControl.LimitInterval property.

The default value for the AppointmentSearchInterval property is730 days (2 years). Therefore, by default, appointments older than 2 years will not be recognized by Navigation Buttons.

#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