Miroslav Nedyalkov

Unfortunately there is no straight-forward way to do that in the current version of the Docking control. You can still implement it by handling the Loaded event of the RadPane control and in the handler you could remove all its commands from the MenuCommands collection. Here is an example:

RoxanaC

For me it is not enough to remove some or all the commands from the MenuCommands collection :(
This ability to show/hide this context button could be a great feature for a future build!
Regards!
RoxanaC

Miroslav Nedyalkov

What you need to do is to set the ContextMenuTemplate property of the RadPane control. Please refer to the attached example - it demonstrates the recommended way to add commands to the menu.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.

Miroslav Nedyalkov

What do you need to hide - items from the menu or buttons from the Header? If you want to remove the ContextMenu its button should be removed automatically.

Greetings,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

Varun, look at the sample code I presented at the bottom of the thread. It does create an empty context menu, that much is true, but the code also removes the context menu dropdown thus, hiding the button as I assume you're desiring to do.

Miroslav Nedyalkov

The correct way to remove the ContextMenu is to set the ContextMenuTemplate property to null instead of setting it to an empty context menu.

All the best,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.