Passing Pamerters code behind

2 posts, 0 answers
  1. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 16 Mar 2016 Link to this post

    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.
  2. Katia
    Katia avatar
    565 posts

    Posted 18 Mar 2016 Link to this post

    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.

    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
Back to Top