Unplanned
Last Updated: 08 Jun 2020 11:15 by ADMIN
Archana
Created on: 08 Jun 2020 11:04
Type: Bug Report
2
The Html5 Report Viewer does not resize properly when the browser window resizes
If you set the Html5 Report Viewer scaleMode to FIT_PAGE_WIDTH or other value different from the default one, the viewer won't resize properly when the user switches the browser window size with the Restore Down/Maximize button.
1 comment
ADMIN
Todor
Posted on: 08 Jun 2020 11:15

Hi all,

The workaround is to refresh the report on the window resizes event, for example by adding the following script in the page hosting the viewer:

function resizeViewer() {
    var viewer = $("#reportViewer1").data("telerik_ReportViewer");
    viewer.refreshReport();
}

// Attaching the event listener function to window's resize event
window.addEventListener("resize", resizeViewer);

Regards,
Todor
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.