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. Image for the cookie policy date
close icon

Schedule control contextmenu event.

Hi,
I am using Schedule Control at run time in my application.
When I  right click on context Menu strip  of schedule control I want event of clicked item of context menu.
Please suggest me which event has to be used for that.
I am using sync-fusion version-10.403.0.53
And .Net Framework-3.5.


Thanks and Regards,
Paurnima.


3 Replies

VS Venkatesh Sundaram Syncfusion Team August 12, 2015 01:38 PM UTC

Hi Paurnima,

Thank you for your interest in Syncfusion products.

There is no direct event to trigger the context menu item click action. As a workaround, we can get the context menu object and trigger the events manually like below,

foreach (MenuItem item in this.ScheduleControl1.GetScheduleHost().ContextMenu.MenuItems)

{

item.Click += item_Click;
}

void item_Click(object sender, EventArgs e)

{

MessageBox.show("Item clicked");
}

Please let me know if you have any concerns.

Regards,
Venkat.



PA Paurnima August 14, 2015 07:59 AM UTC

Hi,
Thank you for reply.
I created Item_Click event .
But I am not able to differentiate which Item is clicked.
I  wrote code for Edit and delete item in Item_Click event.
How to differentiate that code.
Please give me the solution.



Thanks and Regards,
Paurnima.



VS Venkatesh Sundaram Syncfusion Team August 17, 2015 01:06 PM UTC

Hi Paurnima,

Thank you for your update.

We have analyzed your reported scenario. As of now we don’t have support for this. We have already logged a feature report for this. We will implement this in any of our upcoming release.

Warm Regards,
Venkatesh

Loader.
Live Chat Icon For mobile
Up arrow icon