Telerik Reporting R1 2017

viewMode(vm)

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.

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