I'd like to get an event whenever the user cancels a dragdrop operation (e.g. presses the escape key or just releases the mouse button). It seems like DragStatus.DragCancel is the status ... but I never get it from any event handler!?
I'm using the internal build 2009_2_904
Thank you
3 Answers, 1 is accepted
0
Accepted
Valentin.Stoychev
Telerik team
answered on 09 Sep 2009, 02:48 PM
Hello Jens,
You should handle the DragInfo event - it is thrown when the user cancels the drag/drop operation.
Hi, I need to catch the escape key event, or the "cancellation" event raised by pressing the escape key. The problem is that when I press escape, the DropInfo event is fired and and the DragStatus is DropImpossible, not DropCancel. That status is set when I drag over a not allowed element, so I can't distinguish when the event is caused by the escape key or by anything else.
1.How could I handle it?
2.Can I disable the escape key?
Thanks in advance.
0
Tsvyatko
Telerik team
answered on 12 Jul 2011, 02:44 PM
Hi Alejandro,
You can get whether the drag is being cancelled by checking for DragCancel status in DragInfo handler.
About the esc key - unfortunately the is no option to disable this behavior.
Kind regards,
Tsvyatko
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!