Overview
Version
Report Server Version | Functional Change |
---|---|
11.0 | / |
Expected Effect
You can hide the report toolbar in actual use.
Implementation Method
Methods for hiding the toolbar:
Deselect Use Toolbar under Template > Web Attribute > Pagination Preview Setting.
Add a Loading End event with the JS code under Template > Web Attribute > Pagination Preview Setting.
For details about JS APIs related to the toolbar, see Toolbar API.
Example One: Deselecting the Use Toolbar Option
Template Creation
Create a general report.
Toolbar Setting
Choose Template > Web Attribute > Pagination Preview Setting, set Following Settings to Set for This Template Separately, and deselect Use Toolbar, as shown in the following figure.
Effect Display
Save the template and click Pagination Preview. The following figure shows the effect.
Example Two: Adding a JS Event
Template Creation
Create a general report.
Event Addition
Choose Template > Web Attribute > Pagination Preview Setting, set Following Settings to Set for This Template Separately, and add a Loading End event, as shown in the following figure.
The JS code is as follows:
_g().getToolbar().setVisible(false);
Effect Display
Save the template and click Pagination Preview. The section "Effect Display" shows the effect.