Search results
Suggest a FeaturePDF

Events

ajaxBeforeLoad

This event will be triggered before AJAX loads.

Arguments Type Description
headers array AJAX headers, we can pass any custom header through this property
data object To pass the custom data while AJAX post back
reportDesignerToken string Token of report designer
serviceAuthorizationToken string Token of ReportingService
actionType string Action type of AJAX call back
model object Returns the report designer model

Example

    $("#container").boldReportDesigner({
        ajaxBeforeLoad: function(args) {
            if (args && args.headers) {
                args.headers.push({ 'Key': 'keyCode', 'Value': ("Authorization") });
            }
        }
    });

ajaxError

This event will be triggered when AJAX result is failed.

Arguments Type Description
headers array Returns the AJAX headers
data object Returns the failure data
reportDesignerToken string Token of report designer
serviceAuthorizationToken string Token of ReportingService
actionType string Action type of AJAX call back
model object Returns the report designer model

Example

    $("#container").boldReportDesigner({
        ajaxError: function(args) {
            // Write your block of code
        }
    });

ajaxSuccess

This event will be triggered when AJAX result is succeeded.

Arguments Type Description
headers array Returns the AJAX headers
data object Returns the success data
reportDesignerToken string Token of report designer
serviceAuthorizationToken string Token of ReportingService
actionType string Action type of AJAX call back
model object Returns the report designer model

Example

    $("#container").boldReportDesigner({
        ajaxSuccess: function(args) {
            // Write your block of code
        }
    });

create

This event will be triggered when the Report Designer widget is created.

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

Example

    $("#container").boldReportDesigner({
        create: function(args) {
            // Write your block of code
        }
    });

destroy

This event will be triggered when the Report Designer widget is destroyed.

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

Example

    $("#container").boldReportDesigner({
        destroy: function(args) {
            // Write your block of code
        }
    });

newDataClick

This event will be triggered while initiating new data click action. You can suppress the new data creation panel and perform custom actions.

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

Example

    $("#container").boldReportDesigner({
        newDataClick: function(args) {
            // Write your block of code
        }
    });

openReportClick

This event will be triggered while clicking open menu items.

Arguments Type Description
target jQuery DOM of the clicked target
select string Name of selected item

Example

    $("#container").boldReportDesigner({
        openReportClick: function(args) {
            // Write your block of code
        }
    });

previewReport

This event will be triggered while previewing the report in RDLC mode. It can be used to suppress the preview data dialog in RDLC mode.

Arguments Type Description
reportViewer object Contains the instance of Report Viewer component
cancelDataInputDialog boolean Specifies whether to show or hide preview data dialog
dataSets array Contains the required data to load the report

Example

    $("#container").boldReportDesigner({
        previewReport: function(args) {
            // Write your block of code
        }
    });

reportModified

This event will be triggered when the report is modified.

Arguments Type Description
isModified boolean Specifies whether the report is modified or not
reportName string Name of Opened Report

Example

    $("#container").boldReportDesigner({
        reportModified: function(args) {
            // Write your block of code
        }
    });

reportOpened

This event will be triggered when the report is opened.

Arguments Type Description
isServerReport boolean Specifies whether report opened from device or server
reportName string Name of Opened Report

Example

    $("#container").boldReportDesigner({
        reportOpened: function(args) {
            // Write your block of code
        }
    });

reportSaved

This event will be triggered when the report is saved.

Arguments Type Description
isServerReport boolean Specifies whether report opened from device or server
reportAction string States whether report is downloaded from ReportServer

Example

    $("#container").boldReportDesigner({
        reportSaved: function (args) {
                // Write your block of code
        }
    });

saveReportClick

This event will be triggered when the save menu items are clicked.

Arguments Type Description
target jQuery DOM of the clicked target
select string Name of selected item

Example

    $("#container").boldReportDesigner({
        saveReportClick: function(args) {
            // Write your block of code
        }
    });

toolbarClick

This event will be triggered while clicking the toolbar items.

Arguments Type Description
target jQuery DOM of the clicked target
click string Name of clicked item

Example

    $("#container").boldReportDesigner({
        toolbarClick: function(args) {
            // Write your block of code
        }
    });

toolbarRendering

This event will be triggered on rendering the Report Designer toolbar.

Arguments Type Description
cancel boolean true, if the event should be canceled; otherwise, false.
target jQuery Returns toolbar element.
model object Returns the report designer model
type string Returns the name of the event

Example

    $("#container").boldReportDesigner({
        toolbarRendering: function(args) {
            // Write your block of code
        }
    });

encryptData

This event will be triggered when data encryption is performing.

Arguments Type Description
data string The plain text data to be encrypted.
cancel boolean true, if the event should be canceled; otherwise, false.
model object Returns the report designer model
type string Returns the name of the event

Example

$("#container").boldReportDesigner({
    encryptData: function(args) {
        //  Write your block of code to encrypt args.data
        return args.data;
    }
});

decryptData

This event will be triggered when data decryption is performing.

Arguments Type Description
data string The ciphertext data to be decrypted.
cancel boolean true, if the event should be canceled; otherwise, false.
model object Returns the report designer model
type string Returns the name of the event

Example

$("#container").boldReportDesigner({
    decryptData: function(args) {
        //  Write your block of code to decrypt args.data
        return args.data;
    }
});