Hello,
I am having a problem with my Telerik Report using Datasource on Postback even when I explicitly create and bind a new Datasource to the report in the code behind.
I have a Dropdownlist on my page that contains date ranges I can select to populate the report with. Next to that I have a "Get Report" button that when clicked fetches the necessary rows from the database, processes them, manually builds a Dataset, and then binds the Dataset to the report.
This works great the first time I generate the report after visiting the page. However, when I select a new date range from the dropdown and click the Get Timesheet button, the same data from before is displayed. The Report or ReportViewer appears to be using cached data and I do not know how to refresh it. The documentation shows a public RefreshReport method in the ReportViewer class that does not actually show up in Visual Studio for me. Even when I click the refresh button on the ReportViewer, the data remains the same. I realize that I am not using the standard method to set report parameters, but due to the way I have to build the DataSet I am unable to set the parameters directly on the report.
Any help is greatly appreciated.
I am having a problem with my Telerik Report using Datasource on Postback even when I explicitly create and bind a new Datasource to the report in the code behind.
I have a Dropdownlist on my page that contains date ranges I can select to populate the report with. Next to that I have a "Get Report" button that when clicked fetches the necessary rows from the database, processes them, manually builds a Dataset, and then binds the Dataset to the report.
This works great the first time I generate the report after visiting the page. However, when I select a new date range from the dropdown and click the Get Timesheet button, the same data from before is displayed. The Report or ReportViewer appears to be using cached data and I do not know how to refresh it. The documentation shows a public RefreshReport method in the ReportViewer class that does not actually show up in Visual Studio for me. Even when I click the refresh button on the ReportViewer, the data remains the same. I realize that I am not using the standard method to set report parameters, but due to the way I have to build the DataSet I am unable to set the parameters directly on the report.
Any help is greatly appreciated.