Hello,
From my understanding I can pass a function into the ready option and it will run after the report viewer is initialized, so great - I though, because I would like for my reports to ignore the cache on a specific report. So I figured I could do something to the effect of:
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "/REST/api/reports/",
templateUrl: '@Url.Content("~/ReportViewer/templates/telerikReportViewerTemplate-9.0.15.225.html")',
reportSource: {
report: "TravelRequestHeader.trdx",
parameters: {
TravelRequestID: '@ViewBag.TravelRequestID'
}
},
viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
ready: function () {
//doesn't work right...
this.refreshReport(true);
}
});
However the report viewer keeps rendering the report from cache, but if I do this explicitly within my dev console:
$('#reportViewer1').data('telerik_ReportViewer').refreshReport(true);
Then it will refresh the report and ignore the cache as I intended. I do not see another option to set when initializing the viewer to tell to ignore the cache, am I missing something here?
Thanks,
Mike