Multiple draggables

5 posts, 0 answers
  1. Raymond
    Raymond avatar
    2 posts
    Member since:
    Jan 2012

    Posted 22 Jan 2012 Link to this post

    When using more then one draggable, how can I differentiate between to the two when it is dropped on the droptarget.
    I tried to examine the "e" object, but no identifier for each draggable is present/visible?
  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 23 Jan 2012 Link to this post

    Hi Raymond,

    The currently dragged object can be referenced on drop via e.draggable.

    http://demos.kendoui.com/web/dragdrop/events.html

    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!
  3. Kendo UI is VS 2017 Ready
  4. Dinh
    Dinh avatar
    1 posts
    Member since:
    Mar 2012

    Posted 29 Mar 2012 Link to this post

    I still misunderstand the explain :(

    I try to create more draggable objects which drop to the same target. However dont know how to recognize which one is dropped :)
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 30 Mar 2012 Link to this post

    Hi Dinh,

    As Dimo explained, you can use the drop event of the droptarget to retrieve information about the dropped element. In this jsFiddle demo you can see this approach in action.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Simi
    Simi avatar
    2 posts
    Member since:
    May 2012

    Posted 04 Jun 2012 Link to this post

    T
    The jsfiddle link is not working. thanks
Back to Top
Kendo UI is VS 2017 Ready