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

Drag Drop results in duplicate nodes within target folder

1 Answer 51 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Karl Wilkens
Top achievements
Rank 1
Karl Wilkens asked on 06 Dec 2008, 03:42 PM
Hi,

I have a server side NodeDrop event that when fired, injects javascript with a RadConfirm - allowing the user to confirm whether or not to perform the drag-drop operation. We do database functions in a separate Ajax request to change the node's parentID if drag drop is confirmed.

However, At the exact moment the radConfirm fires, the contents of the expanded node duplicate. For example, if I have a root node open, and multiple child nodes and I drag drop from one child node to another, when the radConfirm displays, I see two instances of each of the  child nodes. There are no javascript errors and I have traced the code behind and I am not refiring the code that populates the sub nodes. I am stumped on why this is happening. If anyone out there has any idea on what to look for, that would be great. PS, here are the settings of the TreeView

                         <telerik:RadTreeView ID="RadTreeView1" CheckBoxes="True" AllowNodeEditing="true" runat="server" Skin="Web20" EnableDragAndDrop="True"  OnClientNodeChecked="onClientNodeChecked" OnClientNodeEdited="onClientNodeEdited" OnClientContextMenuItemClicked="onClientContextMenuItemClicked" OnClientNodeClicked="onClientNodeClicked" OnClientDoubleClick="onClientDoubleClick" >

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 09 Dec 2008, 09:15 AM
Hello Karl Wilkens,

Could you also post the code needed to reproduce the issue with the provided declaration of the TreeView?

Sincerely yours,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Karl Wilkens
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or