Drag & Drop between list views on differnt user controls

2 posts, 0 answers
  1. Shaun
    Shaun avatar
    38 posts
    Member since:
    Sep 2012

    Posted 28 May Link to this post

    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

     

     

  2. Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 29 May Link to this post

    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.
Back to Top