drop only at top level

2 posts, 0 answers
  1. Justin Lee
    Justin Lee avatar
    149 posts
    Member since:
    Dec 2009

    Posted 01 Apr 2013 Link to this post

    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
  2. Justin Lee
    Justin Lee avatar
    149 posts
    Member since:
    Dec 2009

    Posted 01 Apr 2013 Link to this post

    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
  3. DevCraft banner
Back to Top