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. Image for the cookie policy date

Is it possible to unload the report viewer completly

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

1 Reply

VS Vinoth Srinivasan Syncfusion Team August 5, 2019 02:40 AM

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. 


Loader.
Live Chat Icon For mobile
Up arrow icon