Bug: task can be moved to other task as child even if "preventDefault" method is called in "moveStart" event handler.

2 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    17 posts
    Member since:
    Oct 2014

    Posted 04 Mar 2015 Link to this post

    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?
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 06 Mar 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top