Multiple Drag and Drop in listcontrol

Art

Going by your examples, I set the AllowDrop for the RadListControl to true. I also have set the SelectionMode to MultiExtended. Also, per your example in the TreeView section, I coded the RadListControl's MouseDown event to call the DoDragDrop() method. However, now I can not select rows with the mouse. I can select extended with the arrow keys and shift key, and I can drag them into the TreeView, succesfully. It's like the mouse only works for Dragging, it won't even control the scroll bar in the RadListControl.

Basically I did everything you wrote in the Treeview "Enabling Drag and Drop" section, except I used a RadListView instead of a Windows listbox for the source control. It works with a Windows listbox, but I would like to use the Telerik version.

Michal

Is it possible to drop items from different controls onto ListControl? I have exact same example, but I want to drag nodes from TreeView and drop them onto ListControl, so far I couldn't make it work and I want to make sure if it is possible.

Cheers,
Michal.

Svett

The most common way to achieve drag and drop among controls in Winforms is via Microsoft OLE Drag and Drop feature. You can read more about it in this MSDN article. Nevertheless, the RadTreeView control provides an alternative approach by using TreeViewDragDropService. I am enclosing a sample project which demonstrates it. Notice that you need the latest release Q2 2011 to run the project.

Greetings,
Svett
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.