Remove sheet without warning?

I have the requirement to remove some sheets from an existing spreadsheet (to construct a new spreadsheet). When removing a sheet (spreadsheet.removesheet) there is a warning to the user that this can not be undone and whether it is OK to proceed.
In my case the user should not be bothered. This should happen in the background without user-interaction.
Is there a way to suppress this message?
Thanks
Gerhard

3 Replies 1 reply marked as answer

BT Balamurugan Thirumalaikumar Syncfusion Team September 28, 2020 11:49 AM UTC

Hi Gerhard. 
 
Thanks for using Syncfusion products. 
 
In order to remove the alert messages from Spreadsheet, the DisplayAlerts property can be disabled. Please refer a below code snippet and simple sample for further details. 
 
//Property 
 
this.spreadsheet1.DisplayAlerts = false; 
 
 
Please let us know if you have any further assistance. 
 
Thanks & Regards, 
Balamurugan Thirumalaikumar  
 
  



Marked as answer

GN Gerhard Nanninga September 28, 2020 02:55 PM UTC

Thanks a lot,

this resolved the problem. Had not found it in the documentation. Many thanks for pointing me to the right statement
Best regards
Gerhard


AR Arulpriya Ramalingam Syncfusion Team September 29, 2020 04:36 PM UTC

Hi Gerhard, 
 
Thank you for the update. 
 
We are glad that the reported scenario is resolved from your end and please get back to us, if you need any further assistance. 
 
Arulpriya 


Loader.
Up arrow icon