This is a migrated thread and some comments may be shown as answers.
Bug: task can be moved to other task as child even if "preventDefault" method is called in "moveStart" event handler.
1 Answer 18 Views
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 04 Mar 2015, 12:36 PM
Hello,
I found another issue. Task can be moved to other task as child even if "preventDefault" method is called in "moveStart" event handler.
Link with the example. Task with name "First task" can not be moved in graphical part of the Gantt (and message is logged to browser console), but it can be moved in grid part of the Gantt to other task as child. What event(s) is (are) fired when user moves task in grid part of the Gantt and how to prevent such type of task moving?

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 06 Mar 2015, 08:40 AM
Hi,

The moveStart, move and moveEnd events are only fired when a task is moved in the timeline part of the gantt widget. Currently there are no events fired when the user reorders task in the grid part. You could use the save event to determine whether the task's parentId is changed and to cancel the event if so. Here is dojo snippet showing such approach.

Regards,
Dimitar Terziev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Gantt
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or