Our state of the art Gantt chart
Hi,
I want to set the Gantt (and the task editor) to read-only.
According to the docs I just need to set the readOnly config-property of the Gantt to true:
const ganttConfig = {
dependencyIdField : 'wbsCode',
readOnly: true,
project : {
...
}
...
}
But when I start the Gantt, it is still editable, i.e. I can still modify task names and dates.
Do I misunderstand this option or do I not use it properly or does it not work as expected?
I reproduced it with the advanced example of 5.6.7.
Thanks in advance for any hints!
Hi,
I'm not able to reproduce the issue with the advanced demo here https://bryntum.com/products/gantt/examples/advanced/ .
Are you using Angular? If you are, have you added the readOnly property to the html markup
<bryntum-gantt
#gantt
[readOnly] = "ganttConfig.readOnly"
</bryntum-gantt>
If not, would it be possible for you to upload a runnable test case so we check what's wrong, and give you a proper solution?
Warm regards,
Tasnim
Yes, I am using the Angular example and it was a configuration/initialization problem.
Read-only mode works ow as expected.
Thanks for this hint!