Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [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]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]HTML Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Navigation and Layout Extensions
  [Expand]File Management
  [Expand]Multi-Use Site Extensions
  [Expand]Charts
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Collapse]Report Extensions
   [Collapse]Document Viewer
     HTML5 Document Viewer
     ASP.NET Document Viewer
     ASP.NET Document Viewer Toolbar
   [Expand]Report Designer
  [Expand]SpellChecker
 [Expand]Localization
 [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]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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.

Declaration

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

How would you rate this topic?​​​​​​​