Cancel drop

2 posts, 1 answers
  1. Voss
    Voss avatar
    11 posts
    Member since:
    Jul 2014

    Posted 14 Aug 2014 Link to this post

    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?

  2. Answer
    Alexander Valchev
    Alexander Valchev avatar
    2887 posts

    Posted 15 Aug 2014 Link to this post

    Hi Voss,

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

    Alexander Valchev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top