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.
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>