Some tasks cannot be copied and pasted. Is there any way I can prevent this
Support Forum
Sure. Then, you could use https://bryntum.com/products/gantt/docs/api/Gantt/feature/TaskMenu#event-taskMenuBeforeShow to disable the copy button on the taskMenu
listeners : {
taskMenuBeforeShow(event) {
const { taskRecord, items } = event;
if (taskRecord.name === 'Install Apache') {
items.copy.disabled = true;
}
}
}
Try using instead: https://bryntum.com/products/gantt/docs/api/Gantt/feature/TaskCopyPaste#event-beforePaste
to filter out your tasks you don't want copied?