New to Telerik Reporting? Download free 30-day trial

The clearReportSource() method of the HTML5 Report Viewer

Clears the current reportSource from the viewer's internal state and 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" />
$(document).ready(function () {
    $("#buttonChangeReportSource").on("click", function () {
        var viewer = $("#reportViewer1").data("telerik_ReportViewer");

See Also

In this article