I have been working on this for a while and it simply doesn't work. I set my reportSource as follows (as specified in the TR-Q1 2015 documentation):
self.loadViewer = function () {
$('#reportWrapper').telerik_ReportViewer({
reportSource: self.reportSource(),
serviceUrl: self.reportSettings.serviceUrl,
templateUrl: self.reportSettings.templateUrl,
viewMode: self.reportSettings.viewMode,
scaleMode: self.reportSettings.scaleMode,
scale: self.reportSettings.scale,
ready: function () {
self.reportViewer = this;
}
});
};
self.refreshReport = function () {
if (self.reportViewer) {
self.reportViewer.reportSource(self.reportSource());
self.reportViewer.refreshReport();
}
}
self.compositionComplete = function () {
self.loadViewer();
self.refreshReport();
};
I have tried to set the reportSource in different ways still I see that the viewer is not passing the correct params but those used while in design. Can you please provide an example that works for MVVM (I am using Durandal).
Eduardo.