Hi,
I need the dropPosition (like I could request in the nodeDropping event from the eventArgs) already in the nodeDragging event.
The issue is that I can sort nodes within the tree (drag them in between) and certain nodes (determined by an attribute value) may be moved everywhere BUT to the first position (under certain parent nodes with the same attribute value).
I could simply cancel the dropping event - but that would confuse the user: All other checks are done in nodeDragging and if the drop target is invalid the not-allowed cursor style is displayed. This should also be the case when this certain node type is dragged directly under the certain parent nodes if this has no other children or above the first child of these parents.
So how can I determine the current dropPosition in the dragging event?
I need the dropPosition (like I could request in the nodeDropping event from the eventArgs) already in the nodeDragging event.
The issue is that I can sort nodes within the tree (drag them in between) and certain nodes (determined by an attribute value) may be moved everywhere BUT to the first position (under certain parent nodes with the same attribute value).
I could simply cancel the dropping event - but that would confuse the user: All other checks are done in nodeDragging and if the drop target is invalid the not-allowed cursor style is displayed. This should also be the case when this certain node type is dragged directly under the certain parent nodes if this has no other children or above the first child of these parents.
So how can I determine the current dropPosition in the dragging event?