As far as we see you want to pass a query string to a report filter. You're probably aware that report filters are most commonly used with report parameters and this is the easiest way to achieve what you're after:
Setup a report filter that depends on a report parameter.
Pass a value from query string to the report parameter e.g.:
Hello I'm trying to use this code with Q2 2013 but get a warning that it is obsolete
Warning 1 'Telerik.ReportViewer.WebForms.ReportViewer.Report' is obsolete: 'Telerik.ReportViewer.WebForms.ReportViewer.Report property is now obsolete. Please, use the Telerik.ReportViewer.WebForms.ReportViewer.ReportSource property instead.
If I try to replace 'Telerik.ReportViewer.WebForms.ReportViewer.Report' with Telerik.ReportViewer.WebForms.ReportViewer.ReportSource the code does not work it tells me I can't access the parameters with an Index like ["myindex"].value
How to I upgrade to correct (non obsolete) code?
0
Nasko
Telerik team
answered on 07 Oct 2013, 02:11 PM
Hi Bradley,
To set the parameter value you can use the InstanceReportSourceas shown in the following code:
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();