Unplanned
Last Updated: 11 Jan 2021 13:05 by ADMIN
Philip
Created on: 05 Jan 2021 16:12
Category: TreeView
Type: Feature Request
14
Drag Clue Template

Currently there does not appear to be a way to provide validation of the drag & drop action prior to the OnDrop hook. The result is that the user experience looks as if they are able to drag and drop nodes to places where they should not be able to based on custom logic. It appears there is some logic behind the scenes that provide an icon during the hover of the drag and drop action but the logic determining this icon is not extendable to my knowledge. What I'd like to be able to do is override or extend the logic determines on hover UI feedback of the drag and drop action.  Specifically, for my case, I would like to be able to validate with business logic if the drag and drop action is allowed prior to the OnDrop so invalid actions look something like the below picture. This picture from your demo site shows the feedback provided when you try to drag and drop a node onto itself. It shows a clear icon that suggest the action is not allowed but as I mentioned the logic to produce this result does not appear to be extensible.

 

1 comment
ADMIN
Svetoslav Dimitrov
Posted on: 11 Jan 2021 13:05

Hello Philip,

Thank you for suggesting this improvement for the Drag and Drop functionality of the TreeView. I have changed the title of the feature request to showcase our intentions of naming it. Essentially it would be a template that will allow you to perform that kind of customizations. 

Another important aspect would be an appropriate event. I have logged a feature request for it on your behalf and you can see it from here: OnDrag event feature request. I have added your Vote for it and since I created it on your behalf you are automatically subscribed for email notifications on status updates. 

Regards,
Svetoslav Dimitrov
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/.