kendoDropTarget "drop" fires event twice

5 posts, 1 answers
  1. Mohammed
    Mohammed avatar
    16 posts
    Member since:
    Sep 2012

    Posted 19 Jun 2012 Link to this post

    Hi.

    I'm using 'kendoDropTarget' on a treeview, the drop function seems to fire the event twice in Internet Explorer. 

    for example,
    $("#treeview").kendoDropTarget({
            dragAndDrop: true,
            drop: droptargetOnDrop
        });

    And the function: 
    function droptargetOnDrop(e)
    {
       alert("fires twice");
    }
  2. Mohammed
    Mohammed avatar
    16 posts
    Member since:
    Sep 2012

    Posted 20 Jun 2012 Link to this post

    It looks like a bug in KendoUI kendoDropTarget. Attached sample.

    Tested in IE 7, 8 and 9, and they behave exactly the same.

    Mohammed.
  3. Kendo UI is VS 2017 Ready
  4. Answer
    Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 21 Jun 2012 Link to this post

    Hi Mohammed,

    I have already replied to your support ticket on the same subject. I will repeat the answer here as well, so the other users who experience the same behaviour would be able to read it.

    Indeed the problem occurs only if alert is used and cannot be reproduced if for example console.log() is called instead. It seems that the alert call is actually causing that issue itself, because the event did not fire twice in any other case that we tested.

    Regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Miika
    Miika avatar
    28 posts
    Member since:
    Jun 2012

    Posted 15 Mar 2013 Link to this post

    Hi,

    Also working on the Kendo UI TreeView drag'n'drop functionality, and noticed that if I put an alert() in the drop event, it takes 15-30 seconds to complete, locking down the entire browser. Very strange behaviour. console.log() goes through instantly.

    Not a crucial issue (alerts only used in debugging), but would be nice to understand why it happens, or if perhaps something else can cause the lockdown as well.

    Regards,
    Miika
  6. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 20 Mar 2013 Link to this post

    Hello Miika,

    Alert blocks the JavaScript execution and changes the normal flow of events. To test please use console.log or any other JavaScript logic.

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