Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[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
  [Expand]DevExpress.Web.ASPxScheduler
  [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
  [Collapse]DevExpress.Web.ASPxScheduler.Scripts
   [Expand]ActiveViewChangingEventArgs Class
    ActiveViewChangingEventHandler Delegate
   [Expand]AppointmentClickEventArgs Class
    AppointmentClickEventHandler Delegate
    AppointmentDragEventHandler Delegate
    AppointmentDropEventHandler Delegate
   [Expand]AppointmentPropertyNames Class
    AppointmentResizeEventHandler Delegate
    AppointmentResizingEventHandler Delegate
   [Expand]AppointmentsSelectionEventArgs Class
    AppointmentsSelectionEventHandler Delegate
   [Expand]ASPxAppointmentType Class
   [Expand]ASPxClientAppointment Class
   [Expand]ASPxClientAppointmentDeletingEventArgs Class
    ASPxClientAppointmentDeletingEventHandler Delegate
   [Expand]ASPxClientAppointmentDragEventArgs Class
   [Expand]ASPxClientAppointmentDragInfo Class
   [Expand]ASPxClientAppointmentDropEventArgs Class
   [Expand]ASPxClientAppointmentFlags Class
   [Expand]ASPxClientAppointmentOperation Class
   [Expand]ASPxClientAppointmentResizeEventArgs Class
   [Expand]ASPxClientAppointmentResizingEventArgs Class
   [Expand]ASPxClientAppointmentToolTipShowingEventArgs Class
    ASPxClientAppointmentToolTipShowingEventHandler Delegate
   [Expand]ASPxClientDailyRecurrenceControl Class
   [Expand]ASPxClientFormBase Class
   [Expand]ASPxClientMonthlyRecurrenceControl Class
   [Expand]ASPxClientPoint Class
   [Expand]ASPxClientRect Class
   [Expand]ASPxClientRecurrenceControlBase Class
   [Expand]ASPxClientRecurrenceInfo Class
   [Expand]ASPxClientRecurrenceRange Class
   [Expand]ASPxClientRecurrenceRangeControl Class
   [Expand]ASPxClientRecurrenceType Class
   [Expand]ASPxClientRecurrenceTypeEdit Class
   [Collapse]ASPxClientScheduler Class
     ASPxClientScheduler Members
     ASPxClientScheduler Constructor
    [Collapse]ASPxClientScheduler Events
      ActiveViewChanged Event
      ActiveViewChanging Event
      AppointmentClick Event
      AppointmentDeleting Event
      AppointmentDoubleClick Event
      AppointmentDrag Event
      AppointmentDrop Event
      AppointmentResize Event
      AppointmentResizing Event
      AppointmentsSelectionChanged Event
      AppointmentToolTipShowing Event
      BeginCallback Event
      CallbackError Event
      CellClick Event
      CellDoubleClick Event
      EndCallback Event
      MenuItemClicked Event
      MoreButtonClicked Event
      SelectionChanged Event
      SelectionChanging Event
      Shortcut Event
      VisibleIntervalChanged Event
    [Expand]ASPxClientScheduler Methods
   [Expand]ASPxClientSchedulerRefreshAction Class
   [Expand]ASPxClientSchedulerToolTipData Class
   [Expand]ASPxClientTimeInterval Class
   [Expand]ASPxClientToolTipBase Class
   [Expand]ASPxClientWeekDays Class
   [Expand]ASPxClientWeekDaysCheckEdit Class
   [Expand]ASPxClientWeeklyRecurrenceControl Class
   [Expand]ASPxClientWeekOfMonth Class
   [Expand]ASPxClientYearlyRecurrenceControl Class
   [Expand]ASPxSchedulerDateTimeHelper Class
   [Expand]ASPxSchedulerGroupType Class
   [Expand]ASPxSchedulerViewType Class
   [Expand]CellClickEventArgs Class
    CellClickEventHandler Delegate
   [Expand]DailyRecurrenceValuesAccessor Class
   [Expand]DefaultRecurrenceRuleValuesAccessor Class
   [Expand]MenuItemClickedEventArgs Class
    MenuItemClickedEventHandler Delegate
   [Expand]MonthlyRecurrenceValuesAccessor Class
   [Expand]MoreButtonClickedEventArgs Class
    MoreButtonClickedEventHandler Delegate
   [Expand]ShortcutEventArgs Class
    ShortcutEventHandler Delegate
   [Expand]WeeklyRecurrenceValuesAccessor Class
   [Expand]YearlyRecurrenceValuesAccessor Class
  [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]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ASPxClientScheduler.ActiveViewChanging Event

Occurs on the client side when the Scheduler control is about to change its active view.

Namespace:DevExpress.Web.ASPxScheduler.Scripts
Assembly:JavaScript

Expanded Syntax

Expanded Event Data

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

The following ActiveViewChangingEventArgs properties provide information specific to this event.
Property Description
cancel Gets or sets whether the change of active view should be canceled.
newView Gets the new value of the ASPxScheduler.ActiveView property.
oldView Gets the value of the ASPxScheduler.ActiveView property before modification.

Expanded Remarks

This event is a client-side counterpart of the ASPxScheduler.ActiveViewChanging event.

If the view is changed entirely on the client-side, using built-in scripts or the SetActiveViewType method, the ActiveViewChangingEventArgs.oldView and the ActiveViewChangingEventArgs.newView event arguments contain view types for the view being changed and the target view, respectively. Context menus and View Selector elements use built-in scripts. Therefore, the ActiveViewChanging event is raised and you can determine old and new view types.

The Show more... button switches the view using client scripts, so it fires the ActiveViewChanging event in typical fashion.

If the end-user executes navigation commands, such as Go to This Day, Go to Today, or invokes the navigation dialog Go to Date..., then a corresponding callback command is executed first. Client scripts are not aware of the view type after a callback, so the ActiveViewChangingEventArgs.newView value within the event handler is undefined.

You can find an example of handling the ActiveViewChanging event in our Client Side - Active View Change demo, available online.

Expanded See Also

How would you rate this topic?​​​​​​​