Progress® Telerik® Reporting R2 2019

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();
    });
});
In this article
Not finding the help you need?