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

Drag-n-Drop client side is not keeping HTML elements

1 Answer 50 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Aaron Gibbs
Top achievements
Rank 2
Aaron Gibbs asked on 16 Mar 2011, 09:36 PM
Good afternoon,

I have a RadTreeView in which I am using code similar to the Drag-n-Drop demo to do client-side rearranging of nodes.

The treeview is initially populated in the code-behind with values from a database in Page_Init, with each node containing different controls and text (imagebuttons, hyperlinks, etc.) based on database values.

Using the code from the demo, the drag-n-drop functionality works great, but the node appears to be losing its controls collection after the drop.  Source node is moved to destination OK, but after the move, node contains only the text and not the controls that existed in the source.

What do I need to do to ensure the node's control's innerHTML is kept?

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 18 Mar 2011, 02:05 PM
Hi Aaron Gibbs,

Basically you can see that in the drag-and-drop demo when you drag a node and drop it - it persists it's image. That's why I am interested how did you perform the drag&drop in your project. Could you please send me a sample project so I can inspect it and help you?

Thank you!

Best wishes,
Veronica Milcheva
the Telerik team
Tags
TreeView
Asked by
Aaron Gibbs
Top achievements
Rank 2
Answers by
Veronica
Telerik team
Share this question
or