flex - Prevent drag and drop outside of branch -


i have advanceddatagrid populate hierachialdata xml. i've enabled drag , drop of children nodes, want prevent child node being dropped outside of branch. child must in branch.

how can test if dropped node outside of branch?

i managed solve using dragcomplete event check nodes should in branch , copy node , append last found branch node , delete dragged one.

if user drags leaf top of tree appends first branch node. works being able drag , drop leafs closed branches.

is there way move/re-parent nodes or limited append copy/delete old node?


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -