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

Need SelectionMode="Multiple" UX as "cntrl + click" functionality

1 Answer 65 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Kranthi
Top achievements
Rank 1
Kranthi asked on 07 Oct 2009, 05:22 PM
Hello Telerik,

I am using rad drag drop control, when the selection mode is multiple for the list box, the behaviour is something like below:

if i want to select three items, 
-> click on first item, second item and third item

now when i am about to drag these items i will click on any one of the selected items and drag(a general windows user will expect this functionality to work fine). So when i click on item, the clicked item is getting deselected and as a result i am getting only two items in the payload of drag query.

the above functionality is a bit confusing for a normal windows user.
how can i get the drag functionality as "Control + Click" to select the items and "MouseLeftButtonDown + Drag" to drag the items (Similar as how we drag two or more folders in the file explorer of our windows(My Computer -> C:\))

Thanks,
Kranthi

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 10 Oct 2009, 09:25 AM
Hello Kranthi,

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 WPF list box 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.

Regards,
Miroslav
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.
Tags
DragAndDrop
Asked by
Kranthi
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or