New to Telerik Reporting? Download free 30-day trial

The viewMode(vm) method of the HTML5 Report Viewer

Sets the view mode and automatically reloads the current report (if any) into the new view.

Parameters:

Parameter Description
vm string; the view mode. For more information please see jQuery.fn.telerik_ReportViewer’s viewMode option in Report Viewer Initialization;

Returns: the current ReportViewer object.

var reportViewer = $("#reportViewer1").data("telerik_ReportViewer");
reportViewer.viewMode(telerikReportViewer.PrintModes.PRINT_PREVIEW);
In this article