I recently updated the Telerik.ReportViewer control from 9.0.something to 126.96.36.1996. Since this update I have started noticing that the report-resolver is called multiple times (more than the previous version before) as now our database procedures (that fetch the data for the report) are being hit multiple times - ONLY for the first time a report is run. Subsequent calls only call the data fetch once as before.
I was already aware that the Resolve method is called multiple times, and to stop it getting the data multiple times, I access the view model and check the ReportObject to ensure it is null before going to get the data - (resetting this to null every time user request to run the report). So the first line in my resolver is:
If (viewModel.ReportObject == null)
viewModel.ReportObject = FETCHDATA()
This would stop the data being fetched multiple times. However, since updating to the 188.8.131.526, the resolver seems to be hit twice instantly, the code has not had chance to set the ReportObject before resolver is called again.... What has changed? And how do I stop this now? Its putting heavy loads on databases unnecessarily and degrading overall performance of the server.
Could someone shed a light on this situation?