Hello, I would like to disable the selection with Ctrl and Shift in my Gantt chart and use a checkbox column for selection instead. I have added the checkbox column, but I can’t manage to disable Ctrl and Shift. Can anyone help me? Thank you.
Hello Enrico,
I suppose the easiest way to do that is to use the onTaskClick
event handler:
https://docs.dhtmlx.com/gantt/api__gantt_ontaskclick_event.html
You can use the unselectTask
method if you didn’t click on the checkbox:
https://docs.dhtmlx.com/gantt/api__gantt_unselecttask.html
Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/r0w63dzr