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.

How to customize the ReportViewer Toolbar?

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.

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

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.

 

JS

 

 

Run the Application

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

 

C:\Users\sundaraj\Desktop\Snap1.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 toolbar by using the template.

 

HTML

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

CSS

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

JS

 

C:\Users\sundaraj\Desktop\Snap3.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/ToolbarCustomization852482359.zip

 

Further References

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

http://js.syncfusion.com/demos/web/ReportViewer

Article ID: Published Date: Last Revised Date: Platform: Control:
4829 05/12/2015 05/12/2015 JavaScript ejReportViewer
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.