.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Hide button on ribbon

Posted By:      Posted Date: October 23, 2010    Points: 0   Category :SharePoint

Is it possible to disable a button on the ribbon interface using code, for example if I have a list where I would like to disable the delete button..



View Complete Post

More Related Resource Links

Hide ribbon, Hide site content/recycle button. Caledar overlay. Document publishing. Other questions


I have a 2010 farm operational and working well. I had a few questions.

(1) How to disable ribbons from appearing on the top (for anonymous sites).

(2) When I move the mouse over a tab in the top bar, how do I display a banner. It was easy enough in 2007, but I am not sure in 2010.

(3) I have disabled quick launch. But it still displays all site content and recycle bin. Is there a way to not to show those.

(4) Calendar overlay - Is this to display multiple calendars in one calendar using different colors to differentiate them. But if I had calendars in different site collections, then I guess due to the gallery boundary, I cannot calendars from multiple site collections.

(5) Document publishing - For some reason, this was easier in SPS 2007. I am not able to get it to work in 2010. Basically update a web page dynamically from a word document. Could anyone kindly provide a link. Also, would I be able to update a page in one site collection from a document from another site collection.

(6) Is it possible to move a folder/doc from one document library to another in one site collection (without webdav). Further, can I move a document library from one site collection to another.

Please advise. Sorry if I asked too many questions in the same post. I am newbie and this is my first post.



show/hide ribbon button



I hope I am posting this in the correct area. :-)

I am designing and customizing the moss 2010 for internet. I would like to make the ribbon bar on top invisible for all users. I know about the "HIDE RIBBON" under the "SITE ACTIONS", but the thing is, this button is not there?!

do I have to activate something special, so that I can see this option? any special site collection feature?

and the other question is, when I use this "HIDE RIBBON", is it stll visible for administrators and contributors?


thank you



Disable/hide minimize button

Does anyone know if you can disable or hide just the minimize button on a window? What I want is a resizable window which also has a maximize but not a minimize button. Thanks

Customize Form button now showing up on ribbon

I used SP2010 Beta for 7 months and the Customize Form button was available on the ribbon for lists. Now, I am on the RTM, and cannot figure out how to show this button. Is it a feature? Do you have to have InfoPath 2010 installed locally? (I do have this, but just wondering). Thanks in advance.

How to display the edit button etc on the ribbon irrespective of who has checked it out

Is there a way that i can get the edit button etc displayed for all users irrespective of who has checked it out? Actually,i need the ribbon's edit,browse,page publish buttons active on the page even if somebody else has checked it out.I remember seeing an override checkout option available on the ribbon in some other site,But i do not have any such options displayed(I am also logged in and have full permissions).

Back & forward button of browser hide...

Hiwithout script can i hide back & forward button of browser ..here lot of solution given but not working properly so please give me solutionthankscraj

How to hide the list ribbon in XSLT List View Web Part?

Hi, In SharePoint 2010, I have a custom list "Clients" on a site. On the home page of the site, I have added a Clients List Web Part. When I access the home page in a browser and click anywhere in that list, it displays the "List Tool" ribbon group which has "Items" and "List" ribbons. I do NOT want these ribbons at all when clicking on the list. How do I achieve this? Should I disable the click event on the list so these ribbons do NOT appear? How do I disable the click event on the list? Or What should I do to hide these ribbons when clicking on the list? Basically I want it to behave same as content query web part. In content query web part, if you click anywhere in it, it doesn't show up any extra ribbons. I want the same behavior with list web part. Thanks, Hitesh

Hide/remove ribbon on public website

The new ribbon in SP2010 looks nice from a editors point of view. All webparts seems controlled by the contextual ribbon.Using webparts on a public website, like a discussion board, can the webparts be operated without the ribbon? Eg. creating and editing forum posts and other basic operations.The public website is fully skinned and therefore only the editor should see the ribbon for page and webediting. How is this done in SP2010?

How to hide button in last("fake") row of Datagridview?

In my dgv I have a DataGridViewButtonColumn which adds a "delete row" button to each row. However, a button also gets created for the "fake" row at the bottom of the dgv, which makes no sense in this context because that row does not correspond to a record yet. What is a good way to hide that button, or at least paint over it? I came across this page which shows a method that might do the trick, but I was wondering if there is a better way to do this for this particular situation.

hide EDIT mode from the ribbon

Hi, I am creating a page in SPD 2010 contain custom form that insert items in a list (Poll).  the problem is when i browse the page, by default the ribbon goes to the edit mode. please see the snapshot http://www.exceeditacademy.com/pdf/issue.jpg my question is: - how to force Ribbon to go to the browse mode dirrectly ? or - How to hide the edit mode from the ribbon ? thx

Trim "New Quick Step" ribbon button

Hi all. I succesfully trimed two buttons from: Library Tools - Library - Cutomize Library using :  ribbon.TrimById("Ribbon.Library.CustomizeLibrary.EditList"); ribbon.TrimById("Ribbon.Library.CustomizeLibrary.EditDefaultForms");   Just cannnot find Control ID for "New Quick Step" button here: http://msdn.microsoft.com/en-us/library/ee537543.aspx Help, please. Thanks.  

I need to hide the print button when user clicks print

using vb.net/asp.net 2005.when the user clicks on a linkbutton I am displaying records from my gridview, popping up a new window so that the user can print the records being displayed in the gridview, dvName is the name of the dive that encloses the gridview and gvName is the name of my gridview.The display and print functionality is working fine but the problem is that I am trying to hide the print button from being printed.  When the user clicks on print then all records (good) and the print button (not good) are being printed, here is the javascript that displays the records and the print button.function printDiv(dvName, gvName) { try{ var sOption="toolbar=no,location=no,directories=yes,menubar=no,"; sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; var countRows = 0; var gridview = document.getElementById(gvName); if(gridview != null) { countRows = gridview.rows.length; if (countRows > 0) { countRows = countRows - 1; } } var sWinHTML = document.getElementById(dvName).innerHTML; var winprint=window.open("","",sOption); winprint.document.open(); winprint.document.write('<html><LINK href=MyStyleSheet.

Button in Ribbon.ListItem.New doesn't appear when list is added via a webpart


I have added a button to a project task list (id = 150).
Everything works fine when I directly use the list. But when I add the list via a webpart to the site page my new button is not available. It's exactly the same ribbon as in the list view but my new button is not visible. Any suggestions?

  Title="Ribbon Customization for a Content Type">
    <CommandUIDefinition Location="Ribbon.ListItem.New.Controls._children">

Disable/Hide/Redirect Close Button


Hi all,

was wondering if there was any way Out of Box to disable/hide/redirect the close button when drilling down on a list item. I see it is possible using code, but this is not an option for us at this time as it is not supported.


How to Hide the Ribbon and Site Actions Menu for Anonymous Users in SharePoint 2010?


How to Hide the Ribbon and Site Actions Menu for Anonymous Users in sharepoint2010?


any thoughts?

Thanks in Advance!

Share Knowledge and Spread Love!

Hide edit button on editform based on whether the user is item's creator


Hi Everyone


I would like to hide/show the edit button on a list item's edit form based on whether the user is the item's creator.  The reason I want to do this is because SharePoint's out-of-the-box behaviour is such that when a user edits someone else's item, the Access Denied page pops up AFTER the user makes his/her edits and presses ok.


My users want the edit button to be hidden so they don't have to go through the steps of making the edits, press ok, and then find out their access is denied.


I have done some research, and the approach I have arrived at is to create my own edit item user control, which has my own cutom code which checks if the user is the creator, and then hide/show the edit button.  I have 2 questions surrounding this:


1) Can anyone provide some advice or resources on the web which describes how to best implement an edit form user control and then integrate it into SharePoint so that the user control is only used on my particular list, and doesn't affect anything else in the site collection.


2) Can anyone suggest another approach perhaps requires less custom development effort than the custom user control approach?

How to hide 'Print' button in report viewer??


Hi, i want to hide print button in report viewer by using javascript or with some CSS trick.

By default print button is visible. I don't want to hide by using 'ShowPrintButton' property.

Thanks in advnace.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend