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

Set Page Index of Report View to default on Button Click

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sunny
Top achievements
Rank 1
Sunny asked on 16 Mar 2009, 05:39 AM
Hello,

         I had used reportviewer to show report of customers related to city selected from dropdownlist.
         Now if i select one city which contains total 5 pages of records.
         then i go to the 5th page of report viewer.
         Now, i select another city which contains only 2 pages of records to be shown on reportviewer.
 
         As i was on 5th page of reportviewer, it does not get changed to first or default page index on
         Button_click when i change the city.

         Thus, it results into error.
                      Error : Unspecified error while processing the report request.

          I cant specify the datasource as i had created report through Wizard.
          I also tried,
               ReportViewer1.Report = new MyReport()
                        -- here i don't know what to specify in MyReport()

         But, it didn't work for me.
         Please elaborate me how to solve the problem as soon as possible.

Regards,
Jaspreet

        

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Mar 2009, 05:19 PM
Hi jaspreet,

We believe that we have already discussed this issue in a previous forum thread: Change Page Index of ReportViewer on Page_PostBack. As you are filtering a single report by city, MyReport() would be the report you are filtering and respectively showing in the report viewer.

Regards,
Steve
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Sunny
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or