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

Multiple Drag and Drop in listcontrol

4 Answers 140 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Art
Top achievements
Rank 1
Art asked on 23 Mar 2011, 08:25 PM
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.

Help Please.

Later
Art

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Mar 2011, 07:28 AM
Hello Art,

RadListControl does not support Drag&Drop out of the box.

We will consider implementing selection with mouse drag and drop and more flexible support for Drag&Drop.

We have added points to your account for the suggestions. Do not hesitate to contact us if you have other questions.

Kind regards,
Peter
the Telerik team

0
Michal
Top achievements
Rank 1
answered on 14 Sep 2011, 11:45 AM
I would like to ask question about similar problem:

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.
0
Svett
Telerik team
answered on 16 Sep 2011, 04:15 PM
Hi Michal,

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 >>

0
Michal
Top achievements
Rank 1
answered on 19 Sep 2011, 08:53 AM
Thank you so much Svett! This is exacly what I needed :)

Cheers!
Michal
Tags
DropDownList
Asked by
Art
Top achievements
Rank 1
Answers by
Peter
Telerik team
Michal
Top achievements
Rank 1
Svett
Telerik team
Share this question
or