Hello,
When I drag and drop an item in PageView, I would like it to create a copy of the item (page) when holding the Control key—either within the same PageView or between different PageViews.
Could you help me achieve this?
Thank you.
The required behavior is not fully supported by the control. In general, the control provides built-in drag-and-drop functionality. You can refer to the RadPageViewDragDropService article. Additionally, you can review the forum thread titled "DragDrop Between RadPageViews," where drag-and-drop between two RadPageViews was discussed. The specific issue here relates to the logic involving the control key. You will need to write custom logic to handle this scenario.
I used the code from the forum thread and extended it to cover most of your scenarios. The tricky part is that the default logic is triggered by the mouse left button. The code I used employs the mouse right button for drag-and-drop logic. I couldn't find a way to interfere with the default logic except by rewriting it. That is why I have decided to demonstrate your requirement using the right mouse button. You can find the custom project attached to this reply. Feel free to modify the code or extend it to cover all your scenarios. Keep in mind that this is a custom solution and it may not work in all cases. Still, I think that this will be a good starting point.
Regards,
Dinko | Tech Support Engineer
Progress Telerik