Hi Chris,
Thanks for using Syncfusion products.
In order to set the custom context menu for MonthView and WekView in ScheduleControl , you can use the ContextMenuStrip property, ScheduleAppontMentClick event and SetUpContextMenu event to handle the context menu. Please refer the below code snippet and refer the below attached sample
Code snippet
ScheduleGrid grid;
ContextMenuStrip contextMenu;
grid = this.scheduleControl1.GetScheduleHost();
contextMenu = new System.Windows.Forms.ContextMenuStrip();
ToolStripItem item = new ToolStripMenuItem("Delete", (Image)(ScheduleGrid.GetBitmap("Delete.png")), new EventHandler(deleteItemClick));
contextMenu.Items.Add(item);
grid.ContextMenuStrip = null;
this.scheduleControl1.SetupContextMenu += scheduleControl1_SetupContextMenu;
this.scheduleControl1.ScheduleAppointmentClick += scheduleControl1_ScheduleAppointmentClick;
private void scheduleControl1_ScheduleAppointmentClick(object sender, ScheduleAppointmentClickEventArgs e)
{
if ((e.ClickType == ScheduleAppointmentClickType.RightClick) && (this.scheduleControl1.ScheduleType == ScheduleViewType.Month || this.scheduleControl1.ScheduleType == ScheduleViewType.Week))
{
this.scheduleControl1.ContextMenuStrip = contextMenu;
}
}
void scheduleControl1_SetupContextMenu(object sender, CancelEventArgs e)
{
if (this.scheduleControl1.ScheduleType == ScheduleViewType.Month || this.scheduleControl1.ScheduleType == ScheduleViewType.Week)
e.Cancel = true;
}
Regards,
Mohanraj G.