Hey
I have a report screen with a collapsible pane, and when we load a report then collapse the pane the report viewer resizes, BUT, the scrollbar in the report viewer doesn't adjust itself. What's the right way to trigger a UI refresh in the report viewer?
I have a report screen with a collapsible pane, and when we load a report then collapse the pane the report viewer resizes, BUT, the scrollbar in the report viewer doesn't adjust itself. What's the right way to trigger a UI refresh in the report viewer?
viewerContainerStyle = {
position:
'absolute'
,
width:
'100%'
,
height:
'100%'
,
[
'font-family'
]:
'ms sans serif'
};
<
tr-viewer
#viewer1
*
ngIf
=
"showReport"
[containerStyle]="viewerContainerStyle"
[serviceUrl]="serviceURL"
[reportSource]="{report: filename, parameters: parameters}"
templateUrl
=
"assets/telerikReportViewerTemplate.html"
[viewMode]="'PRINT_PREVIEW'"
[scaleMode]="'FIT_PAGE_WIDTH'"
[scale]="1.0"
[enableAccessibility]="false">
</
tr-viewer
>
Right now I'm toggling showReport which causes the report viewer to redraw itself, fixing the issue, but some of the reports take a while to render and this is exceedingly annoying.
Thanks