How to disable Editing Mode in the Spreadsheet viewer

Product: WebViewer Spreadsheet Editor

Product Version: 11.7.1

I need the ability to disable Edit Mode in the Spreadsheet editor.
I can see how I can change the default mode, but I cannot figure out how to completely remove the option to Edit the Spreadsheet.

Is that possible?
Thank you!
-Brian

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


To disable editing mode in the WebViewer Spreadsheet Editor, you need to adjust the configuration settings to prevent users from entering edit mode. Although you can change the default mode, here are some steps to completely remove editing capabilities:

Some things you can try:

  • Configure the WebViewer instance to load the spreadsheet in a read-only mode.

  • Use the API to disable or hide UI components that allow editing.

  • Ensure that any edit-related keyboard shortcuts or context menus are disabled.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

Hello Brian,

Thank you for contacting WebViewer Forums.

While we do not have a way to remove the mode itself, we can target the dropdown, that changes the mode from the UI, and disable it with the disableElements() API. Let me know if this works for you.

instance.UI.disableElements(['editorDropdown'])

Regards,
Luke

perfect. Thank you @luke.dam .
I was looking under Features and not under UI Elements.
I will check this for both the DOCX and the SpreadSheet viewers, since I need “Editor” and “Viewer” modes on both.

Cheers!
-Brian