We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Appointment item under the mouse at right clicking

Thread ID:





79707 Feb 23,2009 04:20 AM Feb 24,2009 05:21 AM Windows Forms 3
Tags: ScheduleControl
Gergo Ujvari
Asked On February 23, 2009 04:20 AM

I'm using a Custom Context menu for the ScheduleControl Control and I want to do the following: Depending on where I right clicked on the schedulegrid (where the appointments are showed) I want to filter out some menu entries in my Context menu.

(For example: If I right click on a time slot where there is no appointment, some entries should be available only but if I right click on an appointment other entries should be available in my context menu etc.)

The base of the question, how to know that which appointment item is under the mouse when I right click.

Can you help me in this issue?

Jisha Joy [Syncfusion]
Replied On February 24, 2009 12:01 AM


Thank you for interest in Syncfusion Products.

The deisired behavior can be achieved by handling ScheduleAppointmentClick event. Please see the code:

this.scheduleControl.ScheduleAppointmentClick += new ScheduleAppointmentClickEventHandler(scheduleControl_ScheduleAppointmentClick);

void scheduleControl_ScheduleAppointmentClick(object sender, ScheduleAppointmentClickEventArgs e)
if (e.ClickType == ScheduleAppointmentClickType.RightClick)
if (e.Item != null)

this.contextMenuStrip1.Items.Add("No appointment");
this.contextMenuStrip1.Show(MousePosition.X, MousePosition.Y);

Please let me know if this helps.


Gergo Ujvari
Replied On February 24, 2009 04:22 AM

Thank you for your reply.

Your code was the solution I was looking for.
Thanks again for your help!

Jisha Joy [Syncfusion]
Replied On February 24, 2009 05:21 AM


Thank you for your update.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.