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

Drag Items From a RadListBox To a Specific RadTreeViewNode Using Server-Side Code

2 Answers 49 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 06 Jan 2012, 09:12 PM
I need to drag one or more items from a RadListBox to a specific RadTreeViewNode. I'd like to achieve this without resorting to client-side code if possible. The Dropped event is invoked on the server when I drop on the white space of the RadTreeView control, but not when I drop on a RadTreeViewNode. 

I want to handle the event on the server because I need to interact with a DAC and then call DataBind on the RadTreeView control.

If it is necessary to use client code to fulfill my requirements, please provide a link to an example if one exists.

Thank you

2 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 09 Jan 2012, 02:24 PM
Hello Robert,

I have prepared a sample page demonstrating how you can implement the desired functionality. Please note that the Dropped event fires only when you drop the item over a HTML element with it's ID attribute set. So in order to drop on a RadTreeNode, it has to have an ID.

Greetings,
Bozhidar
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
0
Robert
Top achievements
Rank 1
answered on 09 Jan 2012, 09:33 PM
The solution provided worked. Thank you.
Tags
TreeView
Asked by
Robert
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Robert
Top achievements
Rank 1
Share this question
or