Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1330
Prevent Drag & Drop Nodes
posted

Is there a way to prevent users dragging and dropping nodes in the Tree.

 I have a tree which prevents dragging and dropping but when you click a node (mouse down) and drag the node (mouse still down) the node selected does not move but any node that is under the mouse pointer is highlighted.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    This probably seems a little counter-intuitive, but you need to set:

    this.ultraTree1.Override.SelectionType = Infragistics.Win.UltraWinTree.SelectType.SingleAutoDrag;

    In this case, AutoDrag refers to automatically dragging nodes, so it will not drag the selection. It doesn't actually automatically drag nodes, either, it just fires the SelectionDrag event. 

Children