3 Answers, 1 is accepted
Hello, Serg,
RadTabbedFormControl offers the ContextMenuOpening event. It allows you to customize the default menu and add your own items. Please refer to the following help article which is quite useful on this topic: https://docs.telerik.com/devtools/winforms/controls/forms-and-dialogs/tabbedform/features/context-menuI hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hello, Serg,
In the ContextMenuOpening event you have access to the Items collection. Hence, you can remove all the existing items and add any custom menu items that you need. You can find below a sample code snippet:
private void radTabbedFormControl1_ContextMenuOpening(object sender, RadTabbedFormControlItemConextMenuOpeningEventArgs e)
{
e.ContextMenu.Items.Clear();
RadMenuItem item = new RadMenuItem("My Item");
item.Click += Item_Click;
e.ContextMenu.Items.Add(item);
}
private void Item_Click(object sender, EventArgs e)
{
//TODO
}
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.