How to hide the list ribbon in XSLT List Web part in SharePoint 2010?

One approach would be to follow the tutorial outlined in this blog post: Remove actions from the ribbon: SharePoint 2010 The end result is a UserControl that you can place on any page and "trim" (i.e. De) certain portions of the Ribbon: entire tabs, or individual groups or buttons on the ribbon If you follow the prescribed solution from the blog, then you would add the following lines in your Page_Load event: SPRibbon ribbon = SPRibbon. GetCurrent(this.

Page); if (ribbon! = null) { ribbon. TrimById( SPRibbon.

ListTabId ); ribbon. TrimById( SPRibbon. ListItemTabId ); } Additional ribbon element IDs can be found at: As referenced in the CMDUI.

Xml XML file As defined by public fields on SPRibbon (used in example above) Of course, the downside to using this approach is that the particular ribbon elements you hide are hard-coded in the UserControl. To get around this, I used the UserControl as a basis to create a Web Part that allows you to define which ribbon elements to hide via a property. It works great and is generic enough to be applicable to many different scenarios.

One approach would be to follow the tutorial outlined in this blog post: Remove actions from the ribbon: SharePoint 2010 The end result is a UserControl that you can place on any page and "trim" (i.e. De) certain portions of the Ribbon: entire tabs, or individual groups or buttons on the ribbon. If you follow the prescribed solution from the blog, then you would add the following lines in your Page_Load event: SPRibbon ribbon = SPRibbon.

GetCurrent(this. Page); if (ribbon! = null) { ribbon.

TrimById( SPRibbon. ListTabId ); ribbon. TrimById( SPRibbon.

ListItemTabId ); } Additional ribbon element IDs can be found at: As referenced in the CMDUI. Xml XML file As defined by public fields on SPRibbon (used in example above) Of course, the downside to using this approach is that the particular ribbon elements you hide are hard-coded in the UserControl. To get around this, I used the UserControl as a basis to create a Web Part that allows you to define which ribbon elements to hide via a property.It works great and is generic enough to be applicable to many different scenarios.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions