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

Append "hint-element" to droptarget

3 Answers 202 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Patrick asked on 15 Dec 2011, 11:30 AM
Hi all

the example here is showing the way to change the hint while dragging over different droptargets.
Now I want to append the "hint-element" to the droptarget as  shown while dragging it.
At the moment with this code it always appends the source element, but i donĀ“t know how to add the hint-element.

function droptargetOnDrop(e) {
  $target = $(e.target);
  $draggable = $(e.draggable.currentTarget);
  $target.append($draggable);
}

any ideas, code samples etc?

Thank you, Paddy

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 15 Dec 2011, 01:14 PM
Hello Patrick,

Please refer to the updated demo.

http://jsfiddle.net/d5pkJ/9/

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
Patrick
Top achievements
Rank 2
answered on 15 Dec 2011, 01:22 PM
Hi Dimo, thank you. Exactly what i'm looking for.... BR, Paddy
0
Buddhika
Top achievements
Rank 1
answered on 25 Jan 2012, 05:28 AM
I want to drop a kendo window to a tab when i move the window to a particular tab i want it to open and get the window...how can i do that??
Tags
Drag and Drop
Asked by
Patrick
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Patrick
Top achievements
Rank 2
Buddhika
Top achievements
Rank 1
Share this question
or