How to hide the file menu from the Spreadsheet Component

Hello,

I just want to disable or hide the file menu on the toolbar in the spreadsheet.

Thanks,

1 Reply 1 reply marked as answer

SP Sangeetha Priya Murugan Syncfusion Team February 4, 2021 05:35 AM UTC

Hi Omar, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported requirement and it can be achievable in our spreadsheet by using hideFileMenuItems method as like as below. 
 
hideMenu: function () { 
      var spreadsheet = this.$refs.spreadsheet; 
      spreadsheet.hideFileMenuItems(["File"], true); 
    }, 
 
For your convenience, we have prepared the sample based on our suggestion in a button click event. Please refer the below link. 
 
 
 
Could you please check the above links and get back to us, if you need any further assistance on this. 
 
Regards, 
Sangeetha M 


Marked as answer
Loader.
Up arrow icon