Hello Adit,
Newtonsoft.Json.dll is required to properly format the messages sent from the viewer to the service, and the assembly must not be installed on the machine and must be compatible with the rest installed Nuget packages.
About report parameters, their running values can be obtained only during the report processing. The attached demo illustrates our test to reproduce the problem, but the NeedDataSource is called always. The demo uses Telerik Reporting v9.0.15.422.
Note that if report's data is updated in the meantime, you will need to refresh the viewer after the successful update of the data by using its refreshReport method. For example:
The reason is that the viewer will display a cached version of the report if you are calling the same report, with the same set of parameters, as the viewer and the report are not aware of the changes in the underlying data.
I have posted more suggestions to your post in How to get refresh button to grab new data from database, which will allow you to stop the reports caching (the service's configuration settings included in v9.0.15.4220 or force the reporting engine to reprocess the report each time (the DateTime parameter updated from external UI).
If you need further help, please open a support ticket and send us a runnable demo project illustrating your settings and the problem. Thus we can gather the related questions into single thread and troubleshoot the issue.
Regards,
Stef
Telerik
Newtonsoft.Json.dll is required to properly format the messages sent from the viewer to the service, and the assembly must not be installed on the machine and must be compatible with the rest installed Nuget packages.
About report parameters, their running values can be obtained only during the report processing. The attached demo illustrates our test to reproduce the problem, but the NeedDataSource is called always. The demo uses Telerik Reporting v9.0.15.422.
Note that if report's data is updated in the meantime, you will need to refresh the viewer after the successful update of the data by using its refreshReport method. For example:
//update data and on success refresh he viewer
$(
'#test'
).click(
function
() {
$.ajax({
url:
"http://localhost:54772/api/Values"
,
type:
"Post"
,
contentType:
'application/json; charset=utf-8'
,
success:
function
(data) {
var
reportViewer = $(
"#reportViewer1"
).data(
"telerik_ReportViewer"
);
reportViewer.refreshReport();
},
error:
function
() { alert(
'error'
); }
});
});
I have posted more suggestions to your post in How to get refresh button to grab new data from database, which will allow you to stop the reports caching (the service's configuration settings included in v9.0.15.4220 or force the reporting engine to reprocess the report each time (the DateTime parameter updated from external UI).
If you need further help, please open a support ticket and send us a runnable demo project illustrating your settings and the problem. Thus we can gather the related questions into single thread and troubleshoot the issue.
Regards,
Stef
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items