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

How to get id of dropped object

1 Answer 110 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Mark M
Top achievements
Rank 2
Mark M asked on 13 Jun 2014, 09:04 PM
Hi All,
Probably a simple question for you experienced folk.  How do I get the id of the element being dropped in the onDrop function?

​$(".dropArea").kendoDropTarget({ group: "choicesGroup", drop: onDrop });

function onDrop(e) {
                 /* how to get the id of the element being dropped? */
            }

Thank you!

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 17 Jun 2014, 09:04 AM
Hello Mark,

I prepared a small example which demonstrates how to obtain the ID of the element being dropped. Please check it and let me know if you have any further questions:

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Drag and Drop
Asked by
Mark M
Top achievements
Rank 2
Answers by
Alexander Valchev
Telerik team
Share this question
or