Hi Tomasz,
We can hide taskbar editing element and change the cursor type by using CSS styles. We can add class to the particular taskbar by using queryTaskbarInfo event.
By using that class we can hide taskbar editing elements, please find the code example below.
<style>
.e-ganttchart .e-prevent-edit .e-gantt-childtaskbar {
cursor: auto !important
}
.e-ganttchart .e-prevent-edit .e-gripper {
content: none !important;
display: none;
}
.e-ganttchart .e-prevent-edit .e-progressbarhandler,
.e-ganttchart .e-prevent-edit .e-connectorpoint-hover {
display: none;
}
</style>
<script>
$("#GanttContainer").ejGantt({
//...
queryTaskbarInfo: function (args) {
if (args.data.taskId == 5) {
$(args.taskbar).find('.e-childContainer').addClass('e-prevent-edit');
}
},
});
</script> |
Please find the below sample link.
Please get back to us if you require further assistance on this.
Regards,
Jesus Arockia Sankaran S