Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by MC on Nov 11, 2009 03:29
open dhtmlx forum
Delay on Drag n Drop Start

Is it possible to add an delay when drag and dropping starts? to block unwanted drags when clicking on an element
like => http://jqueryui.com/demos/draggable/#option-delay

greets
MC
Answer posted by Alex (support) on Nov 11, 2009 04:33

Hello,

which component does your question relates ?

If you meant grid or tree, it is possibly use onDrag or onDragIn events to block drag-n-drop in some cases. The handlers of these events get id of source and target items. And if the handler doesn't return true, the operation will be denied:

http://www.dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:event_ondragin_ondragout

Answer posted by MC on Nov 11, 2009 05:47
Sorry my fault, my question belongs to the Tree Lib more precisely the makeDragable() Method. I have a div and make it dragable for dragging into the Tree. There i will delay the dragging into the tree wenn someone clicks my dragable object instead of dragging it. The Link that i postet explain my problem much better :)

greets
MC
Answer posted by Alex (support) on Nov 11, 2009 08:32

Hello,

please, try to use the latest dhtmlxcommon.js (attached) instead of the original one. It will solve the issue

Attachments (1)