Telerik reporting: Is possible access to the parameter filters from a button outside ?

1 Answer 37 Views
Report Parameters Report Viewer - HTML5 Report Viewer - MVC
Anthony
Top achievements
Rank 1
Anthony asked on 27 Jul 2023, 03:35 PM
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

Sort by
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:

The getReportParameters() method of the HTML5 Report Viewer - Telerik Reporting

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:

Get Report Parameters Request - Telerik Reporting

I hope you'll find this information helpful.

If you have any other questions don't hesitate to contact us. 

Regards, Ralitsa Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
Report Parameters Report Viewer - HTML5 Report Viewer - MVC
Asked by
Anthony
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Share this question
or