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

Is Multiple Item Drag & Drop Possible Between ListBoxes

6 Answers 111 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
steve
Top achievements
Rank 1
steve asked on 28 Jan 2010, 03:53 PM
Is it possible to drag and drop multiple items between listboxes? I have this working between radgridviews in Q3 2009 release but I am unhappy with the look and an extra column keeps being generated.
 
If so a sample proj would be greatfuly appreciated.

steve

6 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 29 Jan 2010, 01:19 PM
Hello Steve,

A certain problem arises when trying to implement the scenario you are talking about. You will notice that when multiple items are selected in windows explorer and you click on one of them the selection is changed on MouseUp. The Silverlight ListBox though changes its selection on MouseDown. Generally you can cancel the mouse event and prevent this, but then you do not know if the user is going to drag the items or not. You may need to inherit the ListBox control and its items to change how they handle selection to achieve this effect.

Currnetly the RadTreeView supports the kind of DragDrop out of the box. Do you think that you will be able to use it?

If you do not use a HierarchicalDataTemplate the TreeView will behave very much like a ListBox. There are some minor differences in the API and look between the two controls but we will be happy to help you get around them if you decide to go this way.

I have attached a sample project demonstrating the issue with drag and drop between multi-select listboxes. Have a look at it and let me know what's your opinion on the topic.

Regards,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sergey Arutchev
Top achievements
Rank 1
answered on 04 Nov 2010, 09:20 PM
Hi Kiril,

I would like to use TreeView as ListBox to deal with multiline selection issue during drag and drop.
Could you please provide info how to style TreeView so it looks like ListBox (remove expander).

Thanks,
Sergey
0
Zarko
Telerik team
answered on 09 Nov 2010, 12:22 PM
Hello Sergey Arutchev,

 If you just want to remove the expander you should use the ExpanderStyle property and set it a style with empty template. Please examine the attached project and if you have further questions feel free to ask. 

Kind regards,
Zarko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sergey Arutchev
Top achievements
Rank 1
answered on 09 Nov 2010, 03:22 PM
Hi Zarko,

Thank you for the explanation and example. It was very helpfull.

Thanks,
Sergey
0
neo e
Top achievements
Rank 1
answered on 15 Nov 2010, 09:18 PM
will this feature be implemented in the listbox in the near future? I am also looking for functionality like that in the listbox.
thx
0
Petar Mladenov
Telerik team
answered on 16 Nov 2010, 11:47 AM
Hi neo e,

We cannot provide the same functionality for the ListBox due to the MouseEvents implementation in the control that Kiril previously described. However, you can take advantage of the RadTreeView to implement such scenarios and it can be styled to look and feel like the ListBox control. If this is an option for you and you need more help with the RadTreeView control, let us know and we will gladly assist you. 

Kind regards,
Petar Mladenov
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
Tags
DragAndDrop
Asked by
steve
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Sergey Arutchev
Top achievements
Rank 1
Zarko
Telerik team
neo e
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or