Hello,
I have a Gantt that only can have two levels. I guess drag&drop is the best and easiest way to do this (Is it a better solution like editing the order value directly in the TreeList area?)
I want to implement order change in the following way.
Could you send me any example of this behaviour?
Regards!
Hello,
The drag & drop of tasks feature came along with other functionality inherited from the TreeList, when this component was integrated with the Gantt in the R3 2020 release.
Regards,
Ivan Danchev
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hello Sergio,
The Gantt does not expose API methods and events dedicated to handling such reordering scenarios. Even though drag and drop of tasks over other tasks can be prevented conditionally in the Save event, for example:
function onSave(e) {
if(e.task.id == 1 || e.values.parentId == 1 || e.values.orderId == 0)
{
e.preventDefault();
}
}
the event does not contain data about where the task is dropped or even whether it is triggered by drag/drop. Thus implementing the described reordering scenarios would require a custom solution.
Because of that I will convert this thread into a feature request item and make it visible in the Feedback Portal. Based on the interest the community shows in it, we will consider improving the API so that more complex reordering scenarios can be handled.
Regards,
Ivan Danchev
Progress Telerik