This is a migrated thread and some comments may be shown as answers.

Cancel drop

1 Answer 194 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Voss
Top achievements
Rank 1
Voss asked on 14 Aug 2014, 05:08 PM
During execution of a kendoDropTargetArea.drop function I would like to (based on conditions) cancel the drop and have the object snap/fly back like it was dropped on a un-droppable area.

Is there a "cancel" drop solution?

thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 15 Aug 2014, 02:36 PM
Hi Voss,

Yes this can be achieved by calling e.preventDefault() in the Drop event handler. Please check the following example:

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Drag and Drop
Asked by
Voss
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or