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

DragAndDrop between two gridview with different item sources types

1 Answer 90 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
ajoua taha
Top achievements
Rank 1
ajoua taha asked on 06 Oct 2016, 09:31 AM

Hi,

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!

1 Answer, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 11 Oct 2016, 08:23 AM
Hello ,

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.

Regards,
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.
Tags
DragAndDrop
Asked by
ajoua taha
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or