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

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -