Progress® Telerik® Reporting R3 2018

clearReportSource()

Clears the current reportSource from the viewer internal state and from its persisted session in the browser. Called in order to force the viewer to respect the newly set reportSource on a server postback.

Returns: a reference for the reportViewer object.

<input id="buttonChangeReportSource" type="submit" value="Change Report Source" />
JavaScript
$(document).ready(function () {
    $("#buttonChangeReportSource").on("click", function () {
        var viewer = $("#reportViewer1").data("telerik_ReportViewer");
        viewer.clearReportSource();
    });
});
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy