corelibraries-devexpress-dot-xtrascheduler-dot-schedulernavigationbuttonoptions-1c624098.md
Specifies the time span used by Navigation Buttons to search for the nearest appointments (in days), so it is limited to a reasonable range.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll
NuGet Package : DevExpress.Scheduler.CoreDesktop
public TimeSpan AppointmentSearchInterval { get; set; }
Public Property AppointmentSearchInterval As TimeSpan
| Type | Description |
|---|---|
| TimeSpan |
A System.TimeSpan value, specifying the search range.
|
You can access this nested property as listed below:
| Object Type | Path to AppointmentSearchInterval |
|---|---|
| SchedulerOptionsViewBase |
.NavigationButtons .AppointmentSearchInterval
|
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 doesn’t specify the recurrence end date, the search operation results in an endless loop, which hangs the application.
To solve the problem, you may use the SchedulerControl.LimitInterval property or specify the AppointmentSearchInterval.
The default value for the AppointmentSearchInterval property is 730 days.Therefore, by default, appointments older than 2 years won’t be recognized by Navigation Buttons.
See Also
SchedulerNavigationButtonOptions Class