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
0
Hi Xingchen,
Svett
the Telerik team
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
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,
Thanks for your response.
When the next version Q2 2011 will be released?
Thanks,
0
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
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
Hi Dean,
Thank you for writing.
The DropPosition property can be found in the event arguments of the DragOverNode event handler:
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 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 >>