New to Kendo UI for jQuery? Download free 30-day trial

MVVM Listbox with Template Does Not Display Data When Item Is Moved

Environment

Product Progress® Kendo UI® ListBox for jQuery

 

Description

My ListBoxes use a template to display their items. When I drag or move an item with the toolbar to the second ListBox, the item is moved but the data is not displayed.

How can I display the data of the ListBox item that was moved?

Solution

The template is not automatically rebound after drag-and-drop and this issue is expected. To work around it, manually refresh the second ListBoxt on the dragend event of the first ListBox.

For the full implementation, refer to this Dojo example. If the arrows from the toolbar are used, you need to apply similar logic to the add event (with timeout).

In this article