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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the ReportViewer Toolbar?

Platform: JavaScript |
Control: ejReportViewer |
Published Date: May 12, 2015 |
Last Revised Date: May 12, 2015

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

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


Toolbar Customization in JavaScript Reportviewer

Syncfusion JavaScript ReportViewer supports the 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 by using toolbarSettings property. To customize the toolbar, set the items for the toolbarSettings property as in the following code example.





Run the Application

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



Figure 1: Toolbar customization without template

Demo Sample

You can download the Demo Sample from the following link.



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 toolbar by using the template.



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


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




Figure 2: Toolbar Template Customization

Demo Sample

You can download the Demo Sample from the following link.



Further References

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


You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

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