I have a problem related to dragging items in the left side of the gantt. In my case, there is restriction when to allow dragging and when not, and i want that icon to be different in different cases. for example to be block icon or plus. How I can do this?
2 Answers, 1 is accepted
0
Ivan Danchev
Telerik team
answered on 30 Jul 2020, 10:46 AM
Hi Mariam,
While there is a way to prevent a task from being dropped over another task based on a certain condition, for example:
we don't have API dedicated to setting the drag handle's icons, or making the Gantt aware that a specific task cannot be dropped over. The prevention shown in the code snippet above is done in the "save" event handler, which is too late for changing the icons, because this event fires on dropping the task.
If you want to see such functionality implemented in the Gantt, we would suggest submitting a feature request in our Feedback Portal and voting for it.