[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Collapse]DevExpress.Web.ASPxScheduler
   [Expand]ActiveViewChangingEventArgs Class
    ActiveViewChangingEventHandler Delegate
   [Expand]AgendaAppointmentCellStyle Class
   [Expand]AgendaAppointmentStyles Class
   [Expand]AgendaCellStyle Class
   [Expand]AgendaCellStyleBase Class
   [Expand]AgendaDateCellStyle Class
    AgendaDayHeaderOrientation Enumeration
   [Expand]AgendaEmptyCellStyle Class
   [Expand]AgendaHorizontalDateHeaderStyles Class
    AgendaIconCellVisibility Enumeration
    AgendaResourceLocation Enumeration
   [Expand]AgendaStylesBase Class
   [Expand]AgendaTodayHorizontalDateHeaderStyles Class
   [Expand]AgendaTodayVerticalDateHeaderStyles Class
   [Expand]AgendaVerticalDateHeaderStyles Class
   [Expand]AgendaView Class
   [Expand]AgendaViewStyles Class
   [Expand]AgendaViewTemplates Class
    AppointmentDatesHighlightMode Enumeration
   [Expand]AppointmentDialogLayoutSettings Class
   [Expand]AppointmentFormBaseEventArgs Class
   [Expand]AppointmentFormEventArgs Class
    AppointmentFormEventHandler Delegate
   [Expand]AppointmentFormTemplateContainer Class
   [Expand]AppointmentFormTemplateContainerBase Class
   [Expand]AppointmentImages Class
   [Expand]AppointmentImagesEventArgs Class
    AppointmentImagesEventHandler Delegate
   [Expand]AppointmentInplaceEditorEventArgs Class
    AppointmentInplaceEditorEventHandler Delegate
   [Expand]AppointmentInplaceEditorTemplateContainer Class
   [Expand]AppointmentLabel Class
   [Expand]AppointmentLabelCollection Class
    AppointmentSelectionAppearanceMode Enumeration
   [Expand]AppointmentStatus Class
   [Expand]AppointmentStatusCollection Class
   [Expand]AppointmentTemplateContainer Class
    AppointmentToolTipMode Enumeration
   [Expand]AppointmentViewInfoCustomizingEventArgs Class
    AppointmentViewInfoCustomizingEventHandler Delegate
   [Expand]ASPxAgendaViewAppointmentDisplayOptions Class
   [Expand]ASPxAppointmentCustomFieldMapping Class
   [Expand]ASPxAppointmentCustomFieldMappingCollection Class
   [Expand]ASPxAppointmentMappingInfo Class
   [Expand]ASPxAppointmentStorage Class
   [Expand]ASPxDateNavigator Class
   [Expand]ASPxDayViewAppointmentDisplayOptions Class
   [Expand]ASPxMonthViewAppointmentDisplayOptions Class
   [Expand]ASPxResourceCustomFieldMapping Class
   [Expand]ASPxResourceCustomFieldMappingCollection Class
   [Expand]ASPxResourceMappingInfo Class
   [Expand]ASPxResourceNavigator Class
   [Expand]ASPxResourceStorage Class
   [Collapse]ASPxScheduler Class
     ASPxScheduler Members
     ASPxScheduler Constructor
    [Expand]ASPxScheduler Properties
    [Collapse]ASPxScheduler Events
      ActiveViewChanged Event
      ActiveViewChanging Event
      AfterExecuteCallbackCommand Event
      AllowAppointmentConflicts Event
      AllowAppointmentCopy Event
      AllowAppointmentCreate Event
      AllowAppointmentDelete Event
      AllowAppointmentDrag Event
      AllowAppointmentDragBetweenResources Event
      AllowAppointmentEdit Event
      AllowAppointmentResize Event
      AllowInplaceEditor Event
      AppointmentFormShowing Event
      AppointmentInplaceEditorShowing Event
      AppointmentViewInfoCustomizing Event
      BeforeExecuteCallbackCommand Event
      BeforeGetCallbackResult Event
      ClientLayout Event
      CustomErrorText Event
      CustomizeElementStyle Event
      CustomJSProperties Event
      DateNavigatorQueryActiveViewType Event
      GotoDateFormShowing Event
      HtmlTimeCellPrepared Event
      InitAppointmentDisplayText Event
      InitAppointmentImages Event
      InitClientAppointment Event
      InitNewAppointment Event
      MoreButtonClicked Event
      PopupMenuShowing Event
      PrepareAppointmentFormPopupContainer Event
      PrepareAppointmentInplaceEditorPopupContainer Event
      PrepareGotoDateFormPopupContainer Event
      PreparePopupMenu Event
      PrepareRecurrenceAppointmentDeleteFormPopupContainer Event
      PrepareRecurrenceAppointmentEditFormPopupContainer Event
      PrepareRemindersFormPopupContainer Event
      QueryWorkTime Event
      RecurrentAppointmentDeleteFormShowing Event
      RecurrentAppointmentEditFormShowing Event
      RemindersFormDefaultAction Event
      RemindersFormShowing Event
      UnhandledException Event
      VisibleIntervalChanged Event
    [Expand]ASPxScheduler Methods
    ASPxSchedulerChangeAction Enumeration
   [Expand]ASPxSchedulerCustomErrorTextEventArgs Class
    ASPxSchedulerCustomErrorTextEventHandler Delegate
   [Expand]ASPxSchedulerDataBaseUpdatedEventArgs Class
   [Expand]ASPxSchedulerDataDeletedEventArgs Class
    ASPxSchedulerDataDeletedEventHandler Delegate
   [Expand]ASPxSchedulerDataDeletingEventArgs Class
    ASPxSchedulerDataDeletingEventHandler Delegate
   [Expand]ASPxSchedulerDataInsertedEventArgs Class
    ASPxSchedulerDataInsertedEventHandler Delegate
   [Expand]ASPxSchedulerDataInsertingEventArgs Class
    ASPxSchedulerDataInsertingEventHandler Delegate
   [Expand]ASPxSchedulerDataUpdatedEventArgs Class
    ASPxSchedulerDataUpdatedEventHandler Delegate
   [Expand]ASPxSchedulerDataUpdatingEventArgs Class
    ASPxSchedulerDataUpdatingEventHandler Delegate
   [Expand]ASPxSchedulerDataWebControlBase Class
   [Expand]ASPxSchedulerDialogLayoutSettings Class
   [Expand]ASPxSchedulerFormDataHelper Class
   [Expand]ASPxSchedulerImages Class
   [Expand]ASPxSchedulerOptionsAdaptivity Class
   [Expand]ASPxSchedulerOptionsBehavior Class
   [Expand]ASPxSchedulerOptionsCellAutoHeight Class
   [Expand]ASPxSchedulerOptionsCookies Class
   [Expand]ASPxSchedulerOptionsForms Class
   [Expand]ASPxSchedulerOptionsLoadingPanel Class
   [Expand]ASPxSchedulerOptionsMenu Class
   [Expand]ASPxSchedulerOptionsToolTips Class
   [Expand]ASPxSchedulerOptionsView Class
   [Expand]ASPxSchedulerPopupForm Class
   [Expand]ASPxSchedulerPopupMenu Class
   [Expand]ASPxSchedulerPrepareFormPopupContainerEventArgs Class
    ASPxSchedulerPrepareFormPopupContainerHandler Delegate
   [Expand]ASPxSchedulerRelatedControl Class
   [Expand]ASPxSchedulerRelatedControlBase Class
   [Expand]ASPxSchedulerResourceHeaderOptions Class
   [Expand]ASPxSchedulerStorage Class
   [Expand]ASPxSchedulerStorageControl Class
   [Expand]ASPxSchedulerStyles Class
   [Expand]ASPxSchedulerTimeCellPreparedEventArgs Class
    ASPxSchedulerTimeCellPreparedEventHandler Delegate
   [Expand]ASPxTimelineViewAppointmentDisplayOptions Class
   [Expand]ASPxTimeZoneEdit Class
   [Expand]ASPxViewNavigator Class
   [Expand]ASPxViewSelector Class
   [Expand]ASPxViewSelectorOptionsAdaptivity Class
   [Expand]ASPxViewVisibleInterval Class
   [Expand]ASPxViewVisibleIntervalOptionsAdaptivity Class
   [Expand]ASPxWeekViewAppointmentDisplayOptions Class
    AutoHeightMode Enumeration
   [Expand]BottomLeftCornerStyle Class
   [Expand]CellBodyStyle Class
   [Expand]ClientSideAppointmentFieldNames Class
   [Expand]ClockImages Class
   [Expand]CustomizeElementStyleEventArgs Class
    CustomizeElementStyleEventHandler Delegate
   [Expand]DateNavigatorClientSideEvents Class
   [Expand]DateNavigatorProperties Class
   [Expand]DayView Class
   [Expand]DayViewStyles Class
   [Expand]DayViewTemplates Class
   [Expand]FullWeekView Class
   [Expand]FullWeekViewStyles Class
   [Expand]GotoDateDialogLayoutSettings Class
   [Expand]GotoDateFormEventArgs Class
    GotoDateFormEventHandler Delegate
   [Expand]GotoDateFormTemplateContainer Class
   [Expand]HeaderStyle Class
   [Expand]InitClientAppointmentEventArgs Class
    InitClientAppointmentHandler Delegate
   [Expand]MonthView Class
   [Expand]MonthViewStyles Class
   [Expand]PopupMenuShowingEventArgs Class
    PopupMenuShowingEventHandler Delegate
   [Expand]PreparePopupMenuEventArgs Class
    PreparePopupMenuEventHandler Delegate
   [Expand]RecurrenceDialogLayoutSettings Class
   [Expand]RecurrentAppointmentDeleteDialogLayoutSettings Class
   [Expand]RecurrentAppointmentEditDialogLayoutSettings Class
   [Expand]ReminderDialogLayoutSettings Class
    ResourceColorFillArea Enumeration
   [Expand]ResourceNavigator Class
    ResourceNavigatorMode Enumeration
   [Expand]ResourceNavigatorPagerProperties Class
   [Expand]ResourceNavigatorProperties Class
   [Expand]ResourceNavigatorTokensProperties Class
   [Expand]SchedulerCallbackCommandEventArgs Class
    SchedulerCallbackCommandEventHandler Delegate
   [Expand]SchedulerCallbackCommandId Class
   [Expand]SchedulerClientSideEvents Class
   [Expand]SchedulerCustomShortcutCollection Class
    SchedulerFormAction Enumeration
   [Expand]SchedulerFormEditorsImages Class
   [Expand]SchedulerFormEventArgs Class
   [Expand]SchedulerFormTemplateContainer Class
    SchedulerFormVisibility Enumeration
   [Expand]SchedulerShortcut Class
   [Expand]SchedulerShortcutCommands Class
   [Expand]SchedulerStorageClientSideEvents Class
   [Expand]SchedulerTemplates Class
   [Expand]SchedulerViewBase Class
   [Expand]SchedulerViewRepository Class
   [Expand]SelectionBarStyle Class
   [Expand]TimeIndicatorDisplayOptions Class
   [Expand]TimelineView Class
   [Expand]TimelineViewStyles Class
    ToolTipCornerType Enumeration
    WebElementType Enumeration
   [Expand]WeekView Class
   [Expand]WeekViewStyles Class
   [Expand]WorkWeekView Class
   [Expand]WorkWeekViewStyles Class
  [Expand]DevExpress.Web.ASPxScheduler.Commands
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Expand]DevExpress.XtraCharts.Web
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ASPxScheduler.DateNavigatorQueryActiveViewType Event

Enables you to specify a view type to which the Scheduler switches after the end-user changes selected dates in the DateNavigator control.

Namespace:DevExpress.Web.ASPxScheduler
Assembly:DevExpress.Web.ASPxScheduler.v18.1.dll

Expanded Syntax

Expanded Event Data

The event handler receives an argument of type DateNavigatorQueryActiveViewTypeEventArgs containing data related to this event.

Expanded Remarks

The DateNavigatorQueryActiveViewType event fires when the end-user finishes selecting dates in the ASPxDateNavigator control.

You can analyze dates selected in the Date Navigator. These dates are available via the DevExpress.XtraScheduler.DateNavigatorQueryActiveViewTypeEventArgs.SelectedDays. Then, you can decide whether to change the view of the Scheduler or not. The former view type is available via the DevExpress.XtraScheduler.DateNavigatorQueryActiveViewTypeEventArgs.OldViewType property. The DevExpress.XtraScheduler.DateNavigatorQueryActiveViewTypeEventArgs.NewViewType property contains the view type proposed by the Date Navigator. You can leave it as it is or change as your needs dictate.

The following code prohibits changing the view by selecting dates in the Date Navigator, except when the only date selected is the current date.

Expanded See Also

Is this topic helpful?​​​​​​​