Export (0) Print
Expand All

ReportViewerWebPart.ToolBarItemsDisplayMode Property

Gets or sets a bit flags enumeration value that specifies which toolbar items are displayed when ToolBarMode is set to Full.

Namespace:  Microsoft.ReportingServices.SharePoint.UI.WebParts
Assembly:  Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

[WebPartStorageAttribute(Storage.Shared)]
public ToolBarItem ToolBarItemsDisplayMode { get; set; }

Property Value

Type: Microsoft.ReportingServices.SharePoint.UI.WebParts.ToolBarItem
A bit flags enumeration value that specifies which toolbar items are displayed.

The following samples show how to use the ToolBarItemsDisplayMode property to set the visibility of toolbar items.

// Display all toolbar items
rvwp.ToolBarItemsDisplayMode = ToolBarItem.All;

// Display the Atom Feed and Back buttons only
rvwp.ToolBarItemsDisplayMode = 
ToolBarItem.AtomFeed | ToolBarItem.Back;

// Display everything except Atom Feed and Back buttons
rvwp.ToolBarItemsDisplayMode = ToolBarItem.All ^ ToolBarItem.AtomFeed ^ ToolBarItem.Back;

// Remove Atom Feed from the current setting
rvwp.ToolBarItemsDisplayMode &= ~ToolBarItem.AtomFeed;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft