[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
   [Collapse]Document Viewer
     HTML5 Document Viewer
     ASP.NET Document Viewer
     ASP.NET Document Viewer Toolbar
   [Expand]Report Designer
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors Extensions
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Extensions
  [Expand]Query Builder
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

ASP.NET Document Viewer Toolbar

The Document Viewer provides a toolbar to navigate, export and print a report in the client web browser.

Depending on the requirements of your application, a Document Viewer can be assigned one of the following toolbar kinds.

Expanded Use a Native Toolbar

This toolbar can carry one of the following user interface types.

  • Ribbon toolbar:

  • Standard toolbar:

To select the toolbar kind of a Document Viewer, use the DocumentViewerSettings.ToolbarMode property.

To customize the appearance of a Document Viewer Toolbar, use the DocumentViewerSettings.StylesToolbar property.

To customize the items displayed in a standard Toolbar, use the DocumentViewerSettings.ToolbarItems property.

Expanded Use an External Ribbon

Implementation Details

The Ribbon functionality in ASP.NET MVC is provided by the RibbonExtension class.

An instance of this class can be accessed via the ExtensionsFactory.Ribbon helper method, which is used to add a Ribbon extension to a view. This method's parameter provides access to the Ribbon settings provided by the RibbonSettings class, allowing you to completely customize the extension.


The following code demonstrates how to assign an external Ribbon toolbar to a Document Viewer.

View code - "Index":

Controller ("Home"):

Partial View code - "ReportPartial":

Expanded See Also

Is this topic helpful?​​​​​​​