Search results

previewOptions

Properties

dataSources

DataSourceSettings

Gets or sets the list of data sources to preview RDL report from Report Designer.

enableParameterBlockScroller

boolean

Enables and disables the parameter block scroller in Report Viewer component .

Default Value

  • true

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            enableParameterBlockScroller: false
        }
    });
</script>

enableDatasourceBlockScroller

boolean

Enables and disables the data source credential block scroller.

Default Value

  • true

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            enableDatasourceBlockScroller: false
        }
    });
</script>

enableDropDownSearch

boolean

Enables and disables the drop-down parameter search.

Default Value

  • false

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
             enableDropDownSearch: true
        }
    });
</script>

exportSettings

exportSettings

Specifies the export settings for Report Viewer component.

pageSettings

pageSettings

Specifies the page settings.

parameters

parameters

Gets or sets the list of parameters associated with the report.

parameterSettings

parameterSettings

Specifies the parameter settings.

printMode

boolean

Enables and disables the print mode.

Default Value

  • false

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            printMode:true
        }
    });
</script>

printOptions

enum

<ts name = "ej.ReportViewer.PrintOptions"/>

Specifies the print option of the report.

Name Description
Default Specifies the Default property in printOptions.
NewTab Specifies the NewTab property in printOptions.
None Specifies the None property in printOptions.

Default Value

  • ej.ReportViewer.PrintOptions.Default

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            printOption: ej.ReportViewer.PrintOptions.Default
        }
    });
</script>

toolbarSettings

toolbarSettings

Specifies the toolbar settings.

zoomFactor

number

Gets or sets the zoom factor for report viewer.

Default Value

  • 1

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            zoomFactor:  2
        }
    });
</script>

Events

renderingBegin

Fires before report rendering is completed. If you want to perform any operation before the rendering of report,you can make use of the renderingBegin event.

Name Type Description
cancel boolean true if the event should be canceled; otherwise, false.
model object returns the report model.
type string returns the name of the event.

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            renderingBegin:function(args) {
            // Write a code block to perform any operation before rendering.
            }
        }
    });
</script>

renderingComplete

Fires after report rendering completed. If you want to perform any operation after the rendering of report,you can make use of this renderingComplete event.

Name Type Description
cancel boolean true if the event should be canceled; otherwise, false.
model object returns the report model.
type string returns the name of the event.
reportParameters object returns the collection of parameters.
reportParameters object returns the collection of parameters.

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            renderingComplete:function(args) {
                // Write a code block to perform any operation after rendering completed.
            }
        }
    });
</script>

reportError

Fires when any error occurred while rendering the report. If you want to perform any operation when an error occurs in the report, you can make use of the reportError event.

Name Type Description
cancel boolean true if the event should be canceled; otherwise, false.
error string returns the error details.
model object returns the report model.
type string returns the name of the event.

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            reportError: function (args) {
            // Write a code block to perform any operation when report error occurs.
            }
        }
    });
</script>

reportPrint

Fires when the report print action is performed in the report. To perform any operation during the report print action, use the ReportPrint event.

Name Type Description
isStyleLoad boolean true if you have to load the external style file; otherwise, false.

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            reportPrint: function (args) {
            // Write a code block to perform any operation when report error occurs.
            }
        }
    });
</script>