Drag & drop without ID in DIV

1 posts, 0 answers
  1. Vinod
    Vinod avatar
    1 posts
    Member since:
    Apr 2012

    Posted 20 Apr 2012 Link to this post


    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" />


Back to Top