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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Appointment item under the mouse at right clicking

Thread ID:





79707 Feb 23,2009 09:20 AM UTC Feb 24,2009 10:21 AM UTC WinForms 3
Tags: ScheduleControl
Gergo Ujvari
Asked On February 23, 2009 09:20 AM UTC

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 05:01 AM UTC


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 09:22 AM UTC

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 10:21 AM UTC


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon