Cant delete gantt sheet

Posted by: bruno.bueno on 14 January 2025, 10:04 am EST

  • Posted 14 January 2025, 10:04 am EST

    how to delete a gantt sheet?

    .removeSheet() does not work

  • Posted 15 January 2025, 3:13 am EST

    Hi!

    Since GanttSheet is not a normal sheet but rather specialized components that internally utilize standard sheets, they cannot be removed using the .removeSheet() method. Instead, as they are managed through sheet tabs, they should be removed using the removeSheetTab() method. This approach ensures proper handling of these components within the SpreadJS environment.

    Please refer the following code snippet :-

     spread.removeSheetTab(0);

    Please refer to the attached sample for more information: Sample.zip.

    Reference :-

    Hope this works for you.

    Best Regards,

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels