We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the ReportViewer Toolbar?

This article describes how to customize the standard toolbar in ASP.Net MVC ReportViewer. The toolbar customization is the process of changing standard functionalities to meet the requirement.

Refer to the Getting Started with MVC ReportViewer from the existing User Guide that is available in the following link.

http://help.syncfusion.com/ug/js/documents/createyourfirstrepor1.htm

Toolbar Customization in MVC Reportviewer

Syncfusion MVC ReportViewer supports Toolbar Customization. By using toolbarSettings property, you can customize the toolbar of ReportViewer either with the template customization or without the template customization.

Toolbar Customization

You can show or hide the toolbar items of ReportViewer as per the requirement with the help of toolbarSettings property. To customize the toolbar, set the items for toolbarSettings property as the following code example.

CSHTML

 

Run the Application

Run the sample application to see the customized toolbar of JavaScript ReportViewer as displayed in the following screenshot.

 

C:\Users\sundaraj\Desktop\ToolbarMVC.PNG

Figure 1: Toolbar customization without template

Demo Sample

You can download the Demo Sample from the following link.

http://www.syncfusion.com/downloads/support/directtrac/general/ToolbarCustomizewithouttemplate-1548070730.zip

 

Toolbar Template Customization

Toolbar Template customization helps you to customize the toolbar UI instead of standard toolbar. By using the templateId property of ReportViewer, you can hide the standard toolbar and replace the new toolbar. The following code example explains how to customize the toolbar using the template.

CSHTML

 

Add the following CSS code example inside the <style> tag of the razor page.

CSS

Add the following code example inside the <script> tag of the razor page. Also set the desired ReportPath and ReportServiceUrl to ReportViewer.

JS

 

C:\Users\sundaraj\Desktop\ToolbarMVC1.PNG

Figure 2: Toolbar Template Customization

Demo Sample

You can download the Demo Sample from the following link.

http://www.syncfusion.com/downloads/support/directtrac/general/ToolbarCustomization.MVC-467950952.zip

 

Further References

You can find the online User Guide Documentation and online Demo Samples for MVC ReportViewer control from the following link.

http://mvc.syncfusion.com/demos/web/reportviewer/default

Article ID: Published Date: Last Revised Date: Platform: Control:
4824 05/12/2015 05/12/2015 ASP.NET MVC ReportViewer
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon