Multiple Drag and Drop in listcontrol

5 posts, 0 answers
  1. Art
    Art avatar
    54 posts
    Member since:
    Dec 2010

    Posted 23 Mar 2011 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 29 Mar 2011 Link to this post

    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

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Michal
    Michal avatar
    4 posts
    Member since:
    Sep 2011

    Posted 14 Sep 2011 Link to this post

    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.
  5. Svett
    Admin
    Svett avatar
    728 posts

    Posted 16 Sep 2011 Link to this post

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

  6. Michal
    Michal avatar
    4 posts
    Member since:
    Sep 2011

    Posted 19 Sep 2011 Link to this post

    Thank you so much Svett! This is exacly what I needed :)

    Cheers!
    Michal
Back to Top
UI for WinForms is Visual Studio 2017 Ready