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
#Property Value
Type | Description |
---|---|
Time |
A Time |
#Property Paths
You can access the NavigationButtonOptions.AppointmentSearchInterval property from the following objects:
Object Type | Path to Appointment |
---|---|
Options |
|
Scheduler |
|
#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>