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

Drag and drop client API

1 Answer 32 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kern Shen
Top achievements
Rank 1
Kern Shen asked on 08 May 2013, 10:23 AM
In the OnClientNodeDragging event, is it possible to determine the target parent node when dragging in between nodes?

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 13 May 2013, 09:46 AM
Hi Kern,

The OnClientNodeDragging event occurs very early and at the moment when the dragging of the node starts (when this event fires) it can not be determined which will be the destination node so that you can get a reference to it. However, using the OnClientNodeDropping event you can easily access the parent node of the destination node by using the following code:
args.get_destNode().get_parent();

All the best,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
Kern Shen
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or