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

Opinion on how to use drag and drop for multiple source values into destination

1 Answer 23 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
mike
Top achievements
Rank 1
mike asked on 10 Jun 2014, 12:58 AM
Hello, 
I was wondering if the listbox drag and drop functionality would be good for the following scenario: building a toy.

The source listbox will contain items (e.g. toy components) that can be double-clicked or dragged over to the destination listbox. 
The destination listbox will contain all the items needed to build the toy. There can be one or more items from the source listbox that can be added to the destination listbox. 

For example: Building a car. 
- in source listbox select the wheels and drag it to the destination listbox. 
- the wheels in the source listbox should still be there for me to re-select it again and drag it to the destination listbox because a car needs two sets of wheels. 
- if we wanted, we can drag another set of wheels to the car.

Question:
is there a setting where i drag and drop but have the item not being removed in the source listbox so I can keep on selecting and dragging it over to the destination listbox?
or is this something that i need to do client-side or server-side?
thanks for the help.

1 Answer, 1 is accepted

Sort by
0
mike
Top achievements
Rank 1
answered on 10 Jun 2014, 01:50 AM
Nevermind. 
I don't know why it didn't work the first time. 
But i shut down Visual Studio and tried again and it worked with the AllowDuplicates='true'
Tags
ListBox
Asked by
mike
Top achievements
Rank 1
Answers by
mike
Top achievements
Rank 1
Share this question
or