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

confirm msg in drop event triggering twice

1 Answer 36 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
wayne
Top achievements
Rank 1
wayne asked on 17 Nov 2013, 03:30 PM
Hello,
 I'm trying to show a confirm message in the drop event that allows the user to cancel the move. 

  onDrop(e){
   e.setValid(confirm('Are you sure you want to move this folder?'));
}

the functionality seems to work, but the confirm message seems to be triggering twice. I am using the latest version (2013.2.1104) and this seems to be occurring in all browsers.  


1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 19 Nov 2013, 02:14 PM
Hi Wayne,

This is a known issue which occurs because the confirm message blocks JavaScript execution and as a result messes up with the normal flow of events. Can you please test your code with other JavaScript logic that does not involve alert, confirm or prompt?

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
TreeView
Asked by
wayne
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or