Saturday, January 9, 2010

SharePoint 2010 Ribbon Customization Part II: How to Add/Remove/Replace Tab Controls?

In This Article I will cover how we can customize Ribbon Tab controls by adding/removing and replacing control.

OOB ListItem Tab,

This article will show how we can,
  • Add new Button Control to “New” group in above tab
  • Replace the “Delete Item” button with new Button
  • Hide the “WorkFlows” group
  • Add new custom Group with new button
So targeted ListItem should look like,

Add new button to “New” group of ListItem Tab
Replace the OOB “Delete” button with new Button Hide the “WorkFlows” group Add new custom Group with new button

7 comments:

  1. Hi

    1) I tried to work on Ribbon to "Add new custom Group with new button", but after install on the ribbon has not changed. Can not post the details of the source definition for "Add new custom Group with new button" part or post your a little code here. That would be nice.

    2) I tried to practice Part I and it works fine. But when I click on any item of my tab, and then I click on tab List of List Tool, I get an error like this:

    Message: 'children' is null or not an object
    Line: 2
    Char: 4803
    Code: 0
    URI: http://lead-hai/_layouts/cui.js?rev=wvoVpqlQb30nGo4DjDk8Kg%3D%3D

    So, what should I do?

    Many thanks.

    ReplyDelete
  2. Is it possible to download source code of this example?

    ReplyDelete
  3. hi ,

    this superb article on ribbon control.

    can any one tell to me i want to hide the workflow publish tab from ribbon control..

    so where can i go change/add code on which file.

    please revert to on my id:
    mossnavaz@gmail.com.

    Advance thanks.......

    ReplyDelete
  4. Hi,
    Can you Please tell the steps to implement this code for a List in specific Site Collection?

    ReplyDelete
  5. i downloaded the code deployed it successfully but
    when i click on item tab nothing is happening,
    "Error on Page" is shown at the bottom left of ma browser.
    reply me please..:- fazil.tk@gmail.com

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  6. I downloaded the part 2, when i deployed the solution the items in the list view tab is giving loading........
    Can U please suggest on this, so that i can make correct changes.

    ReplyDelete