Category Archives: Sharepoint 2010 Ribbon

SharePoint 2010: Add button to Ribbon with SharePoint designer


SharePoint 2010: Add button to Ribbon with SharePoint designer  Sometimes you may need to add buttons to SharePoint 2010 ribbon. You can take one of two approaches: You can write code to add the button. Another approach is to use … Continue reading

Posted in Sharepoint 2010 Ribbon | Tagged | Leave a comment

SharePoint 2010 – Hide Ribbon buttons Programatically


SharePoint 2010 – Hide Ribbon buttons Programatically Hide Ribbon(whole Ribbon) SPRibbon ribbon = SPRibbon.GetCurrent(this.Page); if (ribbon != null) { ribbon.TrimById(“RibbonGroupId”); } What is this RibbonGroupId ? Well the idea is to hide all the groups in the ribbon and the … Continue reading

Posted in Sharepoint 2010 Ribbon | Leave a comment

Hide the SharePoint Page Ribbon – Programatically


Hide the SharePoint Page Ribbon – Programatically   SPRibbon oribbon = SPRibbon.GetCurrent(this.Page);    if (oribbon != null)    {   //hide the ribbon buttons on the wiki page   oribbon.TrimById(“Ribbon.WikiPageTab.Manage”);   oribbon.TrimById(“Ribbon.WikiPageTab.Share”);   oribbon.TrimById(“Ribbon.WikiPageTab.PubPageActions”); oribbon.TrimById(“Ribbon.WikiPageTab.LibrarySettings”); //hide the ribbon menus on the webpart … Continue reading

Posted in Sharepoint 2010 Ribbon | Leave a comment

Show Ribbon Permission based


Show Ribbon Permission based you can open the master page add the permissionstirng then ribbon control will appear only if the user has manage web permission only. <SharePoint:SPRibbon runat=”server” PermissionsString=”ManageWeb”     PlaceholderElementId=”RibbonContainer” http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spsecuritytrimmedcontrol.permissionsstring.aspx http://styledpoint.com/blog/ribbon-customization-changing-placement-look-and-behavior/

Posted in Sharepoint 2010 Ribbon | Leave a comment