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?

    thanks.
  2. Answer
    Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 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:

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top