-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot drag Tree children with Drag-n-Drop extension #68
Comments
I was able to patch this by adding this to extensions/DnD.js:
This is copied from line 344 of dojo/dnd/Container.js to override the function that checks to see which node your mouse is over. Hoping the dgrid guys come up with a more elegant solution! |
FYI, Kris logged a bug with Dojo about this inherent limitation in dojo/dnd, and it seems there's a bit of interest in supporting this in general, with a patch currently in the works. http://bugs.dojotoolkit.org/ticket/14901 |
This is still broken and also, even with the fix suggested by swiftdemise, only CTRL selections work. Shift selections only grab the first and last items in the selected range for dragging. Here is a code sample that demonstrates the problem:
|
Firstly, RE the original topic, dragging of tree children should work now with Dojo 1.8 which added support for an Secondly, RE selection, there were some commits a few weeks ago that should resolve some issues regarding synchronizing selection between dojo/dnd and dgrid, so give that another try. I'm closing this out now, but if you do see issues feel free to open new ones. Thanks! |
When using the Tree column plugin and the DnD extension, the child rows of the tree cannot be selected - the root/top level row is selected instead. This is easy enough to check yourself by adding the DnD extension to dgrid/test/Tree.html.
The text was updated successfully, but these errors were encountered: