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

Drag and Drop within RadTreeview

0 Answers 74 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Yoga
Top achievements
Rank 1
Yoga asked on 09 May 2009, 09:32 AM
I am using a radtreeview say of the following structure.
Node A
    Node B
        Node C
            Node D

If I drag and drop Node C over Node A. The tree view changes as
Node A
    Node C
        Node B
            Node D

Now if I try to drag and drop  Node B over Node A -> Nothing happens. Please help me to implement this.

The treeview properties are:

 

<telerik:RadTreeView ID="radTree1" runat="server" OnNodeClick="radTree1_NodeClick"

 

     Height="160px" EnableDragAndDrop="True" OnNodeDrop="radTree1_HandleDrop" >

 

 

 

    <CollapseAnimation Type="OutQuint" Duration="100"> </CollapseAnimation>

 

 

 

    <DataBindings> <telerik:RadTreeNodeBinding Expanded="true"/> </DataBindings>

 

 

 

    <ExpandAnimation Duration="100"> </ExpandAnimation>

 

 

 

</telerik:RadTreeView>

The onnodedrop event is triggered when child node is moved above. OnNodeDrop event is NOT TRIGGERED when parent node is moved below.

Thanks in advance.

 

 

 

 

 

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Yoga
Top achievements
Rank 1
Share this question
or