Issue 171: DnD stops working when context menu is bound to nodes
Status:  Verified
Owner: ----
Closed:  Jan 2011
Reported by ekemo...@gmail.com, Jan 14, 2011
What steps will reproduce the problem?
1.Create A dynatree
2.Enable dnd
3.Bind context menu

I am using the same context menu plugin in the samples...I can't combine the use of the context menu plugin and DnD....I tried binding to the title element of the node instead of the node itself, but then the context menu doesn't work until the node is first double clicked...flaky behaviour.

Jan 14, 2011
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Labels: Milestone-Release1.0.4
Jan 17, 2011
#2 krishnam...@gmail.com
I am using dyna tree in our application..
When ever i am trying to combine copy paste with dnd, it is not working..
Can you please help me to over come this..

Thanks in advance.
Jan 18, 2011
#3 ekemo...@gmail.com
Krishnam...replace your dynatree js with the attached patched one...then do this:

1.Add to your tree definition a callback : OnRender(dtnode,el)

2.In the onRender callback bind the copy/paste context menu to: el.getElementsByTagName('a')[0]

The above step should allow you to use both context menus and DnD.
jquery.dynatree.js
95.3 KB   View   Download
Jan 18, 2011
Project Member #4 moo...@wwwendt.de
Thanks, ekemo.

I also noticed that the contextmenu plugin stops propagation for all mouse events, even if it does not handle them.
There may be other context menu plugins that are more collaborative.

@krishnam:
You may try commenting out the two stopPropagation() calls in jquery.contexMenu.js. That may be worth a try too...
Jan 23, 2011
Project Member #5 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release1.1.0
Jan 23, 2011
Project Member #6 moo...@wwwendt.de
tree.onRender() callback was added.
Status: Fixed
Jan 23, 2011
Project Member #7 moo...@wwwendt.de
Also started  issue 174 .
Jul 17, 2012
Project Member #8 moo...@wwwendt.de
considered verified
Jul 17, 2012
Project Member #9 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Verified