开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜