This is a migrated thread and some comments may be shown as answers.

drop only at top level

1 Answer 27 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 01 Apr 2013, 06:51 PM
I have a treeview that I allow users to rearrange the tree via drag and drop.  Certain nodes in the tree I want to enforce that they can only be at the top level.  i.e. When dragging certain items, I do not want to allow them to drop them as children of other items.  How can I accomplish this?

Thanks,
Justin

1 Answer, 1 is accepted

Sort by
0
Justin Lee
Top achievements
Rank 1
answered on 01 Apr 2013, 07:04 PM
In reality, I need to prevent items from being dropped as children in certain items.  (i.e. Item XYZ should never have children)
I found this can be accomplished by ensuring that the children item source is null for those items. 

So I no longer need a solution for this.

Thanks,
Justin
Tags
TreeView
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Justin Lee
Top achievements
Rank 1
Share this question
or