Search code examples
sharepointsharepoint-2010ribbonribbon-control

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?


Solution

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

    Complete sample to hide Ribbon buttons sharepoint 2010 programmatically.