We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to unload the report viewer completly

Thread ID:

Created:

Updated:

Platform:

Replies:

146447 Aug 4,2019 04:21 PM UTC Aug 5,2019 07:40 AM UTC Report Platform 1
loading
Tags: Report Viewer
Martin Jørgensen
Asked On August 4, 2019 04:21 PM UTC

Hi.

Right now I create the ReportViewer like:

$("#container").ejReportViewer(setupObject);

Is is possible to unload the ReportViewer again, and ensure all ReportViewer stuff in DOM is removed?

Thanks

Vinoth Srinivasan [Syncfusion]
Replied On August 5, 2019 07:40 AM UTC

Hi Martin, 
 
In default after rendering the report with processed data the DOM objects will be removed at our end and if you need to remove the objects manually the we suggest you to use “_destroy” method to do so. Please find the below code snippet. 
 
var reportviewerObj = $("#container").data("ejReportViewer"); 
reportviewerObj.__destroy() 
 
 
Regards, 
Vinoth S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon