Ahmed Atia
Ahmed Atia

Reputation: 17980

How to disable button of Ribbon ToolBar?

[Possible Duplicate]
Disable Ribbon Button But I came with question, as I'm this question not answered and I'm looking for available server side solution.

I wonder if there is a way to disable button or many buttons from Ribbon toolbar from server side?

Upvotes: 4

Views: 6402

Answers (2)

Ahmed Atia
Ahmed Atia

Reputation: 17980

Using Ribbon.TrimById Method (String) you can locate Ribbon, RibbonButton or RibbonGroup to hide.

Complete sample to hide Ribbon buttons sharepoint 2010 programmatically.

Upvotes: 2

Mark Mascolino
Mark Mascolino

Reputation: 2292

I think you will want to look into the HideCustomAction option of the Feature Framework. http://msdn.microsoft.com/en-us/library/ms414790.aspx

It has the ability to hide some aspects of the default UI elements in the product and the documentation does talk about the Ribbon so it may do what you want.

Upvotes: 0

Related Questions