This is a migrated thread and some comments may be shown as answers.

Raddock Document Tool

1 Answer 54 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 12 Jul 2012, 03:02 AM
hi
I have a problem with raddock .

How can I disable the activation of the menustrip, in other words, disable the  function.

Please refer to the attached picture showing this problem.

Thanks

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 13 Jul 2012, 02:42 PM
Hello Tim,

In order to achieve your requirement, you should employ the ContextMenuService as shown below:
ContextMenuService menuService = this.radDock1.GetService<ContextMenuService>();
menuService.ContextMenuDisplaying += new ContextMenuDisplayingEventHandler(menuService_ContextMenuDisplaying);
 
void menuService_ContextMenuDisplaying(object sender, ContextMenuDisplayingEventArgs e)
{
    e.Cancel = true;
}

I hope this helps.

Greetings,
Nikolay
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Dock
Asked by
Tim
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or