DragAndDrop between two gridview with different item sources types

2 posts, 0 answers
  1. ajoua taha
    ajoua taha avatar
    25 posts
    Member since:
    Feb 2016

    Posted 06 Oct 2016 Link to this post


    I have two different collections with items of type A and B where B contains typeA's   Id and vice versa, and I'm displaying these two collections in two different RadGridViews .
    Type A contains : IdA , prop1A , IdB
    Type B contains : IdB , prop1B , IdA 
    What I want to do is to be able to drag an item from one grid to the other by recovering the target type Id from source type and retrieve the target element  from a source By the recovered id  and insert it into the target RadGridView .

    Any help would be greatly appreciated!

  2. Stefan Nenchev
    Stefan Nenchev avatar
    535 posts

    Posted 11 Oct 2016 Link to this post

    Hello Ajoua,

    I am not sure of the exact implementation at your end but you should be able to achieve the desired behavior. Can you please confirm whether you have already created the DragAndDrop functionality at your end and you have difficulties in transforming the items? I suggest you check the demos we have regarding the DragAndDrop in our WPF Demos Application. More specifically, you can have a look at the "Tree To Grid Drag" example. Eventually, you need to modify the OnDrop method and apply changes to the item that is dropped so that your requirement is met. As I am not familiar with your specific setup, providing us with a sample project that reflects it will be appreciated. Eventually, we should be able to advise you more appropriately.

    If you have any further questions or concerns, do not hesitate to contact us.

    Stefan Nenchev
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top