How to disable button of Ribbon ToolBar

ribbonribbon-controlsharepointsharepoint-2010

[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?

Best Answer

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

Complete sample to hide Ribbon buttons sharepoint 2010 programmatically.

Related Topic