Schedulercontrol hide ContextMenu

How can devexpress scheduler manager context menu be hidden? There are two context menus: the first is the one to the right of the user in the timecell. This is the one I can hide successfully in the PopupMenuShowing event. But the second one is the one who specially made an appointment. And this I cannot hide. Can someone help me in this case?

+3


source to share


1 answer


The following approach, handling the ShedullerControl.PopupMenuShowing event , should help to hide the context menu for any SchedulerControl elements (e.g. appointments):

void schedulerControl1_PopupMenuShowing(object sender, PopupMenuShowingEventArgs e)
{
    e.Menu.Items.Clear();
}

      



PS This issue has already been discussed in the following DevExpress Support Center : How to disable right-click the Assignments menu .
PPS: You can check the exact menu type with the event handler parameter e.Menu.Id

(for the destination menu it is SchedulerMenuItemId.AppointmentMenu

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

+3


source







All Articles