Skip to main content

DateTime Navigation Services

The DevExpress.XtraScheduler.Services.DateTimeNavigationService class implements the IDateTimeNavigationService interface, and provides methods for time navigation within scheduler’s datetime dimension. Here are its methods:

  • GoToToday() - navigates to the current date.
  • GoToDate(DateTime date) - navigates to the specified date.
  • GoToDate(DateTime date, SchedulerViewType viewType) - navigates to the specified date and displays scheduled meetings in a specified View
  • NavigateForward() - advances forward in time as suggested by the current view.
  • NavigateBackward() - steps back in time as suggested by the current view.

You can use them as illustrated below:

ASPxScheduler1.Services.DateTimeNavigation.NavigateBackward();
ASPxScheduler1.Services.DateTimeNavigation.NavigateForward();
ASPxScheduler1.Services.DateTimeNavigation.GoToToday();
ASPxScheduler1.Services.DateTimeNavigation.GoToDate(new DateTime(2009, 1, 1),  _
    SchedulerViewType.Month);