This is a migrated thread and some comments may be shown as answers.

Disable moving the tasks inside the list

2 Answers 45 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 1
Felix asked on 22 Jun 2015, 07:51 AM

Hello,

 Can someone tell me how to disable the moving functionality of the tasks inside the list? If already tried the following code but none of them works. Thanks.

1.gantt._widget.bind("move", function (e) {
2.                   e.preventDefault();
3.               });
4.gantt._widget.bind("mousedown", function (e) {
5.                   e.preventDefault();
6.               });     

2 Answers, 1 is accepted

Sort by
0
Felix
Top achievements
Rank 1
answered on 26 Jun 2015, 07:12 AM

Hello,

Does no one have a solution for my problem? Still need to unbind the drag and drop-functionality for the tasks inside the list of tasks. Thanks.

Regards,

Felix

0
Accepted
Dimitar Terziev
Telerik team
answered on 30 Jun 2015, 06:54 AM
Hello,

With the current implementation of the RadGantt control, there is no direct option to disable the drag-and-drop functionality in the "treelist" part. Nevertheless you could handle the save event of the kendo widget and cancel it, if the e.values object contains either the parentId or orderId fields, since these are the two fields which are updated during the drag-and-drop operation. 

Regards,
Dimitar Terziev
Telerik
Tags
Gantt
Asked by
Felix
Top achievements
Rank 1
Answers by
Felix
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or