Ashwin
Ashwin

Reputation: 12431

Dragged component does not work

Check this fiddle - http://jsfiddle.net/ashwyn/f5vGQ/

  1. DragDiv contains a kendo numeric textbox.
  2. DragDiv can be dropped on DropDiv.
  3. When DragDiv is dropped the DropDiv conatains the same kendo numeric textbox.

Now, in DragDiv the spin event of kendo text box works properly. But when the dragging is complete (in the DropDiv) it doesn't. Where is it wrong?

Upvotes: 1

Views: 84

Answers (1)

Jonathan Rowny
Jonathan Rowny

Reputation: 7588

It's because you're copying the HTML of the kendo processed element. You just need to append the base HTML, i.e., the input. .append('<input type="text" class="nt" />');

and then you need to call the kendo again. Also, as Kyle Sevenoaks suggested, use a class.

I updated the fiddle: http://jsfiddle.net/f5vGQ/5/

Upvotes: 1

Related Questions