禁用功能区按钮 [英] Disable Ribbon Button

查看:263
本文介绍了禁用功能区按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想禁用,并毫不掩饰对特定列表类型功能区按钮(特别Ribbon.ListItem.New.NewListItem)。网络上我能找到很多很多帖子给我看的方式来删除/隐藏按钮,但没有人真的值得它可以告诉我,我怎么能只是我的自定义列表类型禁用alrteady现有的SharePoint按钮。

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.

例如。继code不删除的按钮,而不是藏了起来。

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

标识=RemoveRibbonButton
  RegistrationType =列表
  RegistrationId =213908
  位置=CommandUI.Ribbon>
    
      
        
      
    
  

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

推荐答案

这可以通过JavaScript在客户端完成。看看这篇文章的一个例子。
http://makarandrkulkarni.blogspot.com/2010/01/sharepoint-2010-ribbon-customization_23.html

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

这篇关于禁用功能区按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆