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

Treeview Drag User Cancel (No event found)

1 Answer 65 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
NorthGates
Top achievements
Rank 1
NorthGates asked on 27 Oct 2012, 02:17 AM
I am trying to implement my own Drag hint line. All is well but if the user cancel the drag operation I cannot hide my hint line because I cannot find the event where I can tell the user canceled the drag.

I tried a few thing with no luck. Example, the user starts to drag a node then stays on that node and release the mouse.
MouseUp, NodeMouseUp don't fire. Same thing when the user starts the drag operation but hits Escape key.

Anybody has a trick?

1 Answer, 1 is accepted

Sort by
0
Accepted
NorthGates
Top achievements
Rank 1
answered on 27 Oct 2012, 02:23 AM
Found it!... Work around is:
private void tv_NodeMouseMove(object sender, RadTreeViewMouseEventArgs e)
{
    if (Control.MouseButtons == System.Windows.Forms.MouseButtons.None && dragLine.Visible)
        dragLine.Visible = false;
}
Tags
Treeview
Asked by
NorthGates
Top achievements
Rank 1
Answers by
NorthGates
Top achievements
Rank 1
Share this question
or