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
  [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]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]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]CustomizeElementStyleEventArgs Class
    CustomizeElementStyleEventHandler Delegate
   [Expand]DateNavigatorClientSideEvents Class
   [Expand]DateNavigatorProperties Class
   [Expand]DayView Class
   [Expand]FullWeekView Class
   [Expand]GotoDateDialogLayoutSettings Class
   [Expand]GotoDateFormEventArgs Class
    GotoDateFormEventHandler Delegate
   [Expand]GotoDateFormTemplateContainer Class
   [Expand]HeaderStyle Class
   [Expand]InitClientAppointmentEventArgs Class
    InitClientAppointmentHandler Delegate
   [Expand]MonthView 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]WorkWeekView 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 Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ASPxScheduler.PopupMenuShowing Event

Occurs before a popup menu is created and allows menu customization.

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

Expanded Syntax

Expanded Event Data

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

The following PopupMenuShowingEventArgs properties provide information specific to this event.
Property Description
Menu Gets or sets the popup menu for which this event was raised.

Expanded Remarks

Handle the PopupMenuShowing event to modify the popup menu every time it is shown. The current popup menu can be accessed via the PopupMenuShowingEventArgs.Menu property.

The types of all popup menu items are listed in the DevExpress.XtraScheduler.SchedulerMenuItemId enumeration.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E291.

The page called DefaultItemWithCustomAction illustrates how to change the default action assigned to a menu item. It uses two different techniques to modify the existing menu.

One technique involves a JavaScript function defined in the page markup that replaces the default GoTo command with a custom handler. The PopupMenuShowing event is handled to specify a JavaScript handler.

Another technique implements a CustomMenuViewCallbackCommand command that is used to perform a callback. The BeforeExecuteCallbackCommand event should be handled to process the command. The PopupMenuShowing event is handled to rename a menu item so it can be properly recognized by a custom callback command.

The code in the event handler changes the MenuItem.Name of the default New Appointment menu item to "MyNewAppointment" on the client side. The MenuItem.Text string that is displayed is changed to "Instant Appointment". So, the popup menu displays the "Instant Appointment" text instead of the default text for the "New Appointment" command. When the user selects this item, a "MyNewAppointment" string is passed as a menu identifier to a callback command.

Expanded See Also

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