Skip to content
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

enable dnd under a tree node if the node is expanded #509

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

enable dnd under a tree node if the node is expanded #509

wants to merge 2 commits into from

Conversation

moromete
Copy link

targetRow = targetRow.nextSibling;

nextSibling is not necessary a grid row. It can be a "dgrid-tree-container" so we must skip it until we find next tree row.

@moromete
Copy link
Author

with this override of the _getChildByEvent method of dojo/dnd/Container
https://gist.github.com/moromete/5263027

and with this commit https://github.com/moromete/dgrid/commit/d8f3cc80e38a96c3dd47e3d5c209d63c5bbc8d78
we can dnd any node at any level of the tree grid (dgrid + tree extension) providing also the "after" information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant