Disable Ribbon Button

最后都变了- 提交于 2020-01-14 19:03:39

问题


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:


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



来源:https://stackoverflow.com/questions/2958219/disable-ribbon-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!