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

Drag & Drop between list views on differnt user controls

1 Answer 123 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Shaun
Top achievements
Rank 1
Shaun asked on 29 May 2017, 12:49 AM

Hi,

I have a main form with a RadListView set to details view which is bound to a list of objects.

I also have a user control with two RadListViews set to details view bound to their own empty list of objects, same type as main.

On the main form when the user clicks on a button an instance of the user control is created and added to a panel on main form. So there can be multiple instances of the UC.

What I'm trying to do is allow the user to drag an item from the main form list and drop it on one of the lists within one of the instances of the user controls created at run time.

I have been trying to do this with the DragDropService, but I'm not getting the target list to update.

Assuming this is possible could you give me a simple example in c#.

Thanks in advance.

Cheers

Shaun

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 29 May 2017, 10:53 AM
Hi Shaun,

You can handle this using the DragDropService of the main list view only. I have attached an example that shows this. 

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ListView
Asked by
Shaun
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or