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

No Drag from a node's Image

2 Answers 16 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 03 Apr 2011, 04:46 AM
Hi Richard

I've noticed that it is not possible to start a drag operation on a node if the mouse is used "NodeMouseDown" on the image in the node; the text of the node must be "NodeMouseDown" for the drag to start.

Do you know if this is a kown issue or is it related to the extra checkbox you helped me put onto my custom node the other day. I was speculating that the extra item in the element tree was screwing with the event somehow?

My NodeMouseDown event looks like this

private void tvAlphaWorkspace_NodeMouseDown(object sender, RadTreeViewMouseEventArgs e)
{
    if (Control.MouseButtons == MouseButtons.Right)
    {
        workspaceContextNode = (RadCustomTreeNode)e.Node; 
    }
    if (Control.MouseButtons.Equals(MouseButtons.Left))
    {
        workspaceDragNode = null;
        workspaceDragNode = (RadCustomTreeNode)e.Node;
        workspaceDrag = true;
        if (workspaceDragNode.Text != "Executables")
        {
            tvAlphaWorkspace.DoDragDrop(workspaceDragNode.Tag, DragDropEffects.Copy);
        }
        else
        {
            workspaceDragNode = null;
            workspaceDrag = false;
        }
    }
}

2 Answers, 1 is accepted

Sort by
0
Accepted
Svett
Telerik team
answered on 07 Apr 2011, 08:33 AM
Hi Ian,

I managed to reproduce the issue with the supplied information. It will be addressed in the upcoming release due in the mid-April. 

I updated your Telerik points.

Best wishes,
Svett
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ian
Top achievements
Rank 1
answered on 07 Apr 2011, 09:21 AM
Hi Svett

No worries. I will wait for the service pack later this month.

regards
Ian
Tags
Treeview
Asked by
Ian
Top achievements
Rank 1
Answers by
Svett
Telerik team
Ian
Top achievements
Rank 1
Share this question
or