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

Drag & Drop issue

5 Answers 94 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Xingchen
Top achievements
Rank 1
Xingchen asked on 13 Jun 2011, 11:36 PM
E.g: 5 child nodes under a parent node. When try to reorder the child nodes, move 2nd node right above or right below 4th node, both of the actions, target node might be the 4th node based on users mouse behavior. How can we identity user wants to move the 2nd node above or below 4th node? 

5 Answers, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 15 Jun 2011, 01:29 PM
Hi Xingchen,

Presently, it is not possible to understand where you will drop the node. We know about this limitation and we will improve the drag and drop behavior in the next version Q2 2011. There it will be possible to understand where you will drop the node by accessing the DropPosition property in the DragOverNode event.

Regards,
Svett
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
Xingchen
Top achievements
Rank 1
answered on 15 Jun 2011, 04:52 PM
Hello Svett,

Thanks for your response.

When the next version Q2 2011 will be released?

Thanks,
0
Svett
Telerik team
answered on 20 Jun 2011, 03:28 PM
Hi Xingchen,

The next major release will be in the middle of July 2011.

Best wishes,
Svett
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
Dean Marriott
Top achievements
Rank 1
answered on 23 Aug 2011, 01:19 AM
Hi there,

I've tried  DragOverNode event but I cannot find DropPosition property.
I am using Telerik Winform 2011 Q1.
By the way, is there any other ways to find out that I drop a node over target node or just next to it?

Thanks
0
Stefan
Telerik team
answered on 25 Aug 2011, 03:29 PM
Hi Dean,

Thank you for writing.

The DropPosition property can be found in the event arguments of the DragOverNode event handler:
void radTreeView2_DragOverNode(object sender, RadTreeViewDragCancelEventArgs e)
 {
    if (e.DropPosition == DropPosition.AfterNode)
    {
        //do smth
    }
 }

Currently, this is the only way to determine where a node is going to be dropped. 

I hope that you find this information helpful.
 
Greetings,
Stefan
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Treeview
Asked by
Xingchen
Top achievements
Rank 1
Answers by
Svett
Telerik team
Xingchen
Top achievements
Rank 1
Dean Marriott
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or