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 开发者_StackOverflowside solution.I wonder if there is a way to disable button or many buttons from Ribbon toolbar from server side?
Using Ribbon.TrimById Method (String) you can locate Ribbon, RibbonButton or RibbonGroup to hide.
Complete sample to hide Ribbon buttons sharepoint 2010 programmatically.
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.
精彩评论