| Issue 171: | DnD stops working when context menu is bound to nodes | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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 17, 2011
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
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.
Jan 18, 2011
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
(No comment was entered for this change.)
Labels:
Milestone-Release1.1.0
Jan 23, 2011
tree.onRender() callback was added.
Status:
Fixed
Jan 23, 2011
Also started issue 174 .
Jul 17, 2012
considered verified
Jul 17, 2012
(No comment was entered for this change.)
Status:
Verified
|
Labels: Milestone-Release1.0.4