Hi, is there any way to access the filters used in the report viewer from a button outside the report viewer?
1 Answer, 1 is accepted
0
Ralitsa
Telerik team
answered on 01 Aug 2023, 10:55 AM
Hello Anthony,
Thank you for reaching out.
If you want to get an array of name-value objects representing the current evaluated report parameters in your JavaScript you can use the getReportParameters method of our HTML5 viewer like this:
var reportViewer = $("#reportViewer1").data("telerik_ReportViewer");
var currentParameters = reportViewer.getReportParameters();
Where you have to replace "reportViewer1" with the id of your report viewer.
Here is a link to the documentation for this method:
If you want to get an array containing Parameter objects representing the report parameters with their values and settings you can make a request to our REST API
POST /api/reports/clients/{clientId}/parameters
You can find the documentation for the parameters API method here: