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

ReportViewer and Refreshing

2 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jaymie
Top achievements
Rank 1
Jaymie asked on 04 Mar 2010, 11:46 AM
I have a reportviewer on my page and in the pageload codeblock I have put:

    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load 
        If Not Page.IsPostBack Then 
            ReportViewer1.Report = New Applications.Reporting.ForecastSalesValues 
        End If 
    End Sub 

The problem is that this report has a parameter which I allow to accept blanks and when I load the page up, the report trys to get the data and display it.
I do not want it to create the report when the page loads, I want it to only try to create the report when the Preview button is pressed.
How can I do this?

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 09 Mar 2010, 10:42 AM
Hello Jaymie,

There is no out of the box solution for your task. The only way to achieve it is to create a custom UI with the necessary controls (preview button and textbox controls).

I have attached a sample application that demonstrates the suggested workaround.

Kind regards,
Peter
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Jaymie
Top achievements
Rank 1
answered on 09 Mar 2010, 04:54 PM
fair enough, I was hoping that their would be a quick and easy solution, but nevermind :)
Tags
General Discussions
Asked by
Jaymie
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jaymie
Top achievements
Rank 1
Share this question
or