Disable Ribbon Button

2019-07-06 17:05发布

I want to disable and NOT hide a ribbon button (specifically Ribbon.ListItem.New.NewListItem) on a particular List type. On web I could find a lot many posts showing me ways to remove/hide buttons but none really worthwhile which could tell me how can I just disable an alrteady existing sharepoint button in my custom List type.

e.g. Following code does remove the button instead of hiding.

Id="RemoveRibbonButton" RegistrationType="List" RegistrationId="213908" Location="CommandUI.Ribbon">

1条回答
兄弟一词,经得起流年.
2楼-- · 2019-07-06 17:53

This can be done through Javascript on the client side. Check out this article for an example. http://makarandrkulkarni.blogspot.com/2010/01/sharepoint-2010-ribbon-customization_23.html

查看更多
登录 后发表回答