Our state of the art Gantt chart


Post by quandarycg »

The documentation is very clear here that when features are set to false, they are disabled. We use this successfully when disabling taskCopyPaste. For some reason when setting taskDrag to false, the user can still drag tasks. I also set taskDragCreate to false, but that did not solve the issue either. Any suggestions?

Here is my features property on the gantt:

   features: {
                        labels: {
                            left: {
                                field: 'name',
                                editor: {
                                    type: 'textfield'
                                }
                            }
                        },
                        taskDrag: false,  // this doesn't do anything (that i notice)
                        taskDragCreate: false, // this doesn't do anything (that i notice)
                        taskCopyPaste: false, // this works 
                       }

Post by mats »

Works just fine for me at https://bryntum.com/examples/gantt/basic/

Try modifying the code live in the demo.

If you can still reproduce in your app, please upload a test case we can inspect.

Attachments
Screenshot 2022-01-29 at 08.33.37.png
Screenshot 2022-01-29 at 08.33.37.png (136.38 KiB) Viewed 354 times

Post by quandarycg »

On the demo code, I added those two lines:
taskDrag: false, taskDragCreate: false

and I was still able to drag the task down.

Screen Shot 2022-01-31 at 9.02.32 AM.png
Screen Shot 2022-01-31 at 9.02.32 AM.png (472.69 KiB) Viewed 337 times
Screen Shot 2022-01-31 at 9.02.59 AM.png
Screen Shot 2022-01-31 at 9.02.59 AM.png (1.53 MiB) Viewed 337 times

Post by mats »

Ah you mean row reordering, that's another feature:

features : {
    rowReorder : false
}

Post by quandarycg »

Wonderful! I see now taskDrag is the act of dragging a task horizontally along the gantt while reorder is vertical.


Post Reply