SIGN UP MEMBER LOGIN:    
ARTICLE

How to remove the ribbon groups from the SharePoint list

Posted by Vijai Anand Articles | SharePoint March 23, 2011
In this article we will be seeing how to remove the ribbon tabs, groups and item from the SharePoint Ribbon List interface.
Reader Level:

In this article we will be seeing how to remove the ribbon tabs, groups and item from the SharePoint Ribbon List interface.

The following is the ribbon interface available in the SharePoint list.

RibbonShare1.gif

Steps Involved:

  • Open Visual Studio 2010.
  • Create Empty SharePoint Project.
  • Right click on the solution and add a new item.
  • Select the "Empty Element" template from SharePoint 2010 installed templates.
  • The solution looks like the following.

    RibbonShare2.gif
     
  • Replace the Elements.xml with the following code.
     
  • Removing the ribbon tab:

    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
              <CustomAction
     Id="RemoveTab"
     Location="CommandUI.Ribbon"
     RegistrationId="100"
     RegistrationType="List">
                       <CommandUIExtension>
                                 <
    CommandUIDefinitions>
                                          <
    CommandUIDefinition
                                           Location="Ribbon.List" />
                                 </CommandUIDefinitions>
                       </
    CommandUIExtension>
              </
    CustomAction>
              <
    CustomAction
    </Elements>

    RibbonShare3.gif
     
  • Removing the ribbon group:

    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
              <CustomAction
     Id="RemoveNewGroup"
     Location="CommandUI.Ribbon"
     RegistrationId="100"
     RegistrationType="List">
                       <CommandUIExtension>
                                 <
    CommandUIDefinitions>
                                          <
    CommandUIDefinition
                                           Location="Ribbon.ListItem.New" />
                                 </CommandUIDefinitions>
                       </
    CommandUIExtension>
              </
    CustomAction>
    </
    Elements>
     
  • Removing the ribbon button:

    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">        
    <CustomAction
     Id="RemoveButton"
     Location="CommandUI.Ribbon"
     RegistrationId="100"
     RegistrationType="List">
                       <CommandUIExtension>
                                 <
    CommandUIDefinitions>
                                          <
    CommandUIDefinition
                                           Location="Ribbon.ListItem.Manage.EditProperties" />
                                 </CommandUIDefinitions>
                       </
    CommandUIExtension>
              </
    CustomAction>
    </
    Elements>

Login to add your contents and source code to this article
share this article :
post comment
 
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Team Foundation Server Hosting
Become a Sponsor