question

WilliamBuchanan-2881 avatar image
0 Votes"
WilliamBuchanan-2881 asked WilliamBuchanan-2881 commented

ReportViewer AsyncRendering parameter reset

Hi all

Has anyone noticed that when AsyncRendering is turned on, after you press 'View Report' certain parameters are cleared of their selected value?

For example if I have a true/false option (radio button) with a default value of true - when the report viewer first loads 'true' will be selected by default. When I press 'View Report' both true and false become deselected. This means the user needs to go through all the parameters and re-select their options again.

Turning AsyncRendering to false fixes the problem - but we need it turned on for another reason so we are a bit stuck at the moment.

This is running in an MVC application.

Any thoughts on how to fix it?

Thanks

sql-server-reporting-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Joyzhao-MSFT avatar image
0 Votes"
Joyzhao-MSFT answered

Hi @WilliamBuchanan-2881 ,
To configure the ReportViewer Web server control for asynchronous rendering, you must set the rendering and processing modes. The rendering behavior is specified by the AsyncRendering property on the control and the processing behavior is specified by the ProcessingMode property. The combination of these two properties defines how your ASP.NET pages will render.
Asynchronous mode is the default mode. In this mode, the ReportViewer toolbar will be loaded immediately when the report is processed. In the process of processing the report, a progress indicator will be displayed in the report view area. After the report is processed, the first page will be displayed in the view area. The current page is stored in the memory or temporary storage area, depending on the configuration settings. One page will be generated at a time. When the user navigates to another report page, the next page will be generated, and the frame in the view area will be updated to display the new page. After the frame is refreshed, the toolbar options will be unavailable.

After the report is rendered when the page is loaded, this property no longer determines the report rendering behavior. By default, all subsequent report rendering is done through asynchronous postback with AJAX partial page update, so changing this property has no effect. For more information about partial page updates and asynchronous postbacks, see Partial-Page Rendering Overview.

To control asynchronous postback behavior, use the InteractivityPostBackMode property.

Best Regards,
Joy


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Joyzhao-MSFT avatar image
0 Votes"
Joyzhao-MSFT answered WilliamBuchanan-2881 commented

Hi @WilliamBuchanan-2881
As far as I know, ReportViewer cannot use MVC by default because it is a server-side control.

If you use ASPX view page or view user control, you need to set AsyncRendering to false to make the report display correctly.

Regards,
Joy


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the information. Unfortunately it doesn't answer the question which was asked or in fact help in any way.

As mentioned, I need to use AsyncRendering - all I need is someone at Microsoft to fix it so that the params don't reset when I use that mode.

In all honesty, the lack of support of everything to do with SQL and reporting services is getting more frustrating by the day.

0 Votes 0 ·

Hi William,
If your needs are more urgent, I suggest you consider choosing telephone support services (this may require some cost), this choice will resolve your issue.
The following are two ways to get support links:
https://support.microsoft.com/en-us/help/4051701/global-customer-service-phone-numbers
​Https://support.microsoft.com/en-us/supportforbusiness/productselection

Regards,
Joy

0 Votes 0 ·

Thanks Joy

I suspect you are right that I need to contact them but if you have ever tried to raise a support request with Microsoft you might understand that it is actually impossible. We have 3 companies who have are working with us and have tried to raise a support request and we have all just given up because it is impossible.

0 Votes 0 ·