PDA

View Full Version : Drag but not register a click



ChrisR
22 Oct 2007, 7:33 AM
I'm currently trying to figure out how to drag an element from a tree to another place without changing the selected node.

The problem is when a node from the tree is selected i load data in a form that's rendered in another panel. No problem and all works fine.

Now i started implementing the node dragging but when you initialize the drag (click and drag down) the node gets selected. Is there a way to prevent this and just drag the node without selecting the node too?

Thanks!

ChrisR
22 Oct 2007, 10:42 PM
Anyone?

I already figured out that the selection (beforeselect event on the TreeSelectionModel) happens before the startdrag event of the tree is triggered. So canceling the select through the startdrag event isn't an option. Any other idea's?