Listview drag and drop - How to add remove functionality to the #newlist as well as stopping duplicates

0 Answers 52 Views
ListView
Richard
Top achievements
Rank 1
Richard asked on 28 Feb 2022, 03:17 PM

Good afternoon

I am trying to amend the code in this article so that I can achieve the following:

1.  Ability to remove items from the #newlist once they have been dropped

- I cannot for the life of me get the template functionality to work with the kb code so I must be missing something somewhere.

2. I am also unsure how to stop adding the same item repeatedly to the #newlist.

Any advice or pointers, gladly received.

 

Nikolay
Telerik team
commented on 03 Mar 2022, 10:36 AM

Hi Richard,

Could you please share more details on the case? I need to be sure I have the requirement correctly.

1. Do you need to remove the item from the dragged list once it has been dragged to the new list? Or do you need an option for the user to remove items from the list that has received new items?

I can suggest checking the ListBox widget that has built-in Drag and Drop functionality. It is possible it might satisfy your project requirement:

https://demos.telerik.com/kendo-ui/listbox/drag-and-drop


Richard
Top achievements
Rank 1
commented on 03 Mar 2022, 10:41 AM

Hello Nikolay

Thank you very much for forwarding the listbox drag and drop example, that's spot on. It appears I was trying to rewrite the wheel with a listview!

Thanks for pointing me in the right direction.

Rich 

Nikolay
Telerik team
commented on 08 Mar 2022, 07:33 AM | edited

Hi Richard,

I am glad to hear I was able to help and you have moved forward with the project.

Regards,

Nikolay

No answers yet. Maybe you can help?

Tags
ListView
Asked by
Richard
Top achievements
Rank 1
Share this question
or