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

Issue with refreshing report when navigate back button is clicked

3 Answers 198 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 15 Apr 2011, 05:08 PM
I am having an issue where the report is not refreshed when the navigate back button is used on the report viewer toolbar.  The main report uses drillthrough functionality to show a more detailed report.  When you navigate back from the drillthrough report you have to click the refresh button for the data to show.

I am using the NeedDataSource event to populate the data initially.  However this event is not fired when the navigate back button is used.

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 Apr 2011, 04:49 PM
Hi Jeremy,

The information you've provided is insufficient for us to determine what might be the problem, especially since you have not mentioned which viewer you're using and not provided code from NeedDataSource.
A common mistake is specifying data source to the definition report object instead of the processing one. More information is available in the following articles:

Greetings,
Steve
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
Jeremy
Top achievements
Rank 1
answered on 20 Apr 2011, 05:13 PM
Steve,

Thanks for the reply.  The issue occurs with both the WinForms and ASP.Net viewer.

I am using the processing report object so the data loads fine initially.  All of the data loading and binding is being done in the NeedDataSource event, which is not fired when clicking the back button.  The ItemBinding and ItemBound events do get fired.  I tried moving the code to those events but I get the same result.

I have restructured how the reports work so this isn't an issue for me any longer but would still like to know why that event doesn't get fired when the report is reloaded in case I or anyone else runs into this again in the future.
0
Steve
Telerik team
answered on 26 Apr 2011, 01:56 PM
Hi Jeremy,

We've made a simple test (sample attached) but were unable to reproduce a problem when navigating back to the original/main report. The NeedDataSource is indeed not fired, but it is not needed to be fired since the data is cached (this was implemented in Q3 2010).
That is why we would appreciate if you prepare and send us a sample project which exhibits the problem. Once we review it, we would be able to get back to you with more info.

All the best,
Steve
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
Tags
General Discussions
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Steve
Telerik team
Jeremy
Top achievements
Rank 1
Share this question
or