Skip to main content
All docs
V25.1
  • Display a Custom Popup Menu

    The following example handles the PopupMenuShowing event to display a custom popup menu when the user right-clicks an appointment. The example sets the e.Allow event parameter to false to prevent the built-in menu from appearing.

    Note

    In this example, a custom popup menu is created and customized at design time.

    void SchedulerControl_PopupMenuShowing(object sender, PopupMenuShowingEventArgs e) {
        if(e.MenuType == DevExpress.XtraScheduler.Views.SchedulerMenuType.AppointmentMenu) {
            e.Allow = false;
            customPopupMenu.ShowPopup(Cursor.Position);
        }
    }
    
    See Also