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

Multiple draggables

4 Answers 184 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Raymond
Top achievements
Rank 1
Raymond asked on 22 Jan 2012, 11:45 PM
When using more then one draggable, how can I differentiate between to the two when it is dropped on the droptarget.
I tried to examine the "e" object, but no identifier for each draggable is present/visible?

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 23 Jan 2012, 10:21 AM
Hi Raymond,

The currently dragged object can be referenced on drop via e.draggable.

http://demos.kendoui.com/web/dragdrop/events.html

Kind regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Dinh
Top achievements
Rank 1
answered on 29 Mar 2012, 06:36 PM
I still misunderstand the explain :(

I try to create more draggable objects which drop to the same target. However dont know how to recognize which one is dropped :)
0
Alexander Valchev
Telerik team
answered on 30 Mar 2012, 04:22 PM
Hi Dinh,

As Dimo explained, you can use the drop event of the droptarget to retrieve information about the dropped element. In this jsFiddle demo you can see this approach in action.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Simi
Top achievements
Rank 1
answered on 04 Jun 2012, 04:03 PM
T
The jsfiddle link is not working. thanks
Tags
Drag and Drop
Asked by
Raymond
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Dinh
Top achievements
Rank 1
Alexander Valchev
Telerik team
Simi
Top achievements
Rank 1
Share this question
or