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

Drag & drop without ID in DIV

0 Answers 107 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Vinod
Top achievements
Rank 1
Vinod asked on 20 Apr 2012, 01:20 PM
Hi

I want drag & drop  feature on div element. Assuming user can select 1 div created at runtime in html & can drop at any where on screen. This div element is created through template provided with source. Problem is i don't want use id attribute in div element. Below is my code assuming source : SomeSourceThroughJson contains proper Json data.

<

 

 

div id="my" data-template="myTemplate" data-bind="source: SomeSourceThroughJson" ></div>

<script id="myTemplate" type="text/x-kendo-template">
<div class="myTemplateContainer" data-bind="click:CallDraggableFunction" >
<p data-bind="text: Property1" />
<p data-bind="text: Property2" />
</div>
</script>

 


 

No answers yet. Maybe you can help?

Tags
Drag and Drop
Asked by
Vinod
Top achievements
Rank 1
Share this question
or