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
Post a Comment