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

context menu

I wanted to add my own menu items in context menu in addition to the defaults that are shown when i enable the toolbar. how do i go about this i try just
MenuItem item = new MenuItem();
item.Name = "Test";
item.AddHandler(MenuItem.ClickEvent, new RoutedEventHandler(OnMnItemClick));

but it still gives me the 4 defaults you guys have set.

how do i add more menu items???




1 Reply

AR Abdul Rahman A.H Syncfusion Team October 12, 2010 12:11 PM UTC

Hi Shivinder,

Thanks for your interest on Syncfusion products.

You can add your custom menu items to the default context menu by initializing ChartArea.ContextMenuType = DefaultWithCustom, and adding new menu items to the ChartArea.CustomContextMenuItems.


Please find the attached sample, which demonstrates how to add custom context menu items to the default context menu.

Regards,
Abdul Rahman









Sample_2d786ec6.zip

Loader.
Live Chat Icon For mobile
Up arrow icon