This is a migrated thread and some comments may be shown as answers.
Gantt left side icon on drag
2 Answers 6 Views
This is a migrated thread and some comments may be shown as answers.
Mariam
Top achievements
Rank 1
Mariam asked on 28 Jul 2020, 12:47 PM

Hi, 

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

Sort by
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:

save: function(e) {
  if(e.task.id == 1)
  {
    e.preventDefault();
  }
}

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.

Regards,
Ivan Danchev
Progress Telerik

0
Mariam
Top achievements
Rank 1
answered on 30 Jul 2020, 11:29 AM
Ok, Thanks for your reply.
Tags
Gantt
Asked by
Mariam
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Mariam
Top achievements
Rank 1
Share this question
or