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

ListBox: Return dropped items in order

1 Answer 189 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Hunter
Top achievements
Rank 1
Hunter asked on 12 Mar 2019, 07:29 PM

I am using two listboxes, connected with each other, that allow drag and drop between the two. While using the reorder code found in another thread fixes the issue with reordering items within the same list, it doesn't address the issue when dragging and dropping an item from one listbox to the other. I understand that is because this isn't a "reorder" action, it is a "drop" action. I've tried many different angles, like using the "add" event, but there is no "offset" property in the (e) object.

How can I accomplish the same thing, that is, keep the dropped item in the order it is visually dropped?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 13 Mar 2019, 11:18 AM
Hi Hunter,

Generally, the order is being preserved as visually indicated. You can verify that by checking the valid drag-n-drop behavior between the 2 listboxes in this live sample:
https://demos.telerik.com/kendo-ui/listbox/drag-and-drop

If there is something specific in your project which makes this functionality behave in a different fashion, you can modify the corresponding dojo sample to demonstrate that and send it back to us for further investigation:
https://dojo.telerik.com/iXAwaLuD

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ListBox
Asked by
Hunter
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or