This is a migrated thread and some comments may be shown as answers.

passing parameters to the web report viewer using client side api

1 Answer 180 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 2
Roberto asked on 12 Aug 2009, 01:55 AM
Hi,

May i pass report's parameters to the web report viewer using the javascript client side api? any sample?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Aug 2009, 07:50 AM
Hi Roberto,

The report parameters are part of the report and not report viewer, which is just a control used for showing it. You can pass parameters in code behind using the Report API like this:

 Telerik.Reporting.Report report = new MyReport();
 report.ReportParameters["MyParam"].Value = myvalue;
 ReportViewer1.Report = report;

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Roberto
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or