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

Passing Pamerters code behind

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 16 Mar 2016, 10:10 AM
I have a report that is inside a class libary to seperate my code from front end. But I am at a loss how I would pass parmeters to that report from code behind it would be for the columns start date and end date I would like the end user to be able to pick from date picker and then click a view report button. I have the reportviewer showing on a aspx page, but not sure how to filter that report.

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 18 Mar 2016, 05:23 PM
Hello Philip,

You can review Using Report Parameters in Expressions and How to: Add filtering to Report help articles for the information how to filter a report based on the parameters passed by the end-user.

To use report parameters to filter data, please check Filtering data and Using Parameters with the SqlDataSource component for example.

To update the parameters' values, you can make parameters visible and use the viewer's parameters area. If you prefer to use custom UI, parameters' values can be updated through the viewer's ReportSource.Parameters collection. The ReportSource.Parameters collection is mapped by key to the report's ReportParameters collection.


If the above information does not help, please open a support ticket and attach an isolated sample demonstrating the current settings of your report and test data.

Regards,
Katia
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
Tags
General Discussions
Asked by
Philip
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or