Our state of the art Gantt chart
Hi team,
I tried to cancel delete task by catch event beforeremove
gantt.taskStore.on({
beforeremove({ records }) {
//Some condition to check and cancel delete task
return false;
}
});
But it not restore Task's name.
I tested with demo version, by delete task Install apache
- 1.png (57.67 KiB) Viewed 298 times
- 2.png (55.29 KiB) Viewed 298 times
. Please help me how to cancel delete task
Thanks for reporting, Reproduced that bug, and I've created a ticket to fix it. Here it is https://github.com/bryntum/support/issues/5720
You can use this workaround for now
<BryntumGantt
{...ganttConfig}
// this code below
taskMenuFeature={{
items : {
deleteTask: {
listeners : {
item({ source : gantt }) {
gantt.refresh();
}
}
}
}
}}
// this code above
extraData={{ handleEditClick }}
/>
Good Luck ,
Tasnim