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

RadDiagram - adjust paste position.

2 Answers 30 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Jakub
Top achievements
Rank 1
Iron
Jakub asked on 24 May 2019, 02:56 PM

Hey,

how can I adjust position of pasted element on diagram? Currently it's exactly in the same place as the copied element and it should be better to slightly move it to the right and down, so user will see the copy-paste action actually completed.

Any ideas?

 

Jakub

2 Answers, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 29 May 2019, 10:50 AM
Hi Jakub,

To change the paste items position you can create a custom class which inherits RadDiagram and overrides its Paste() method. We have PasteOnMousePosition sample project in our GitHub repository which demonstrates a similar approach. In this SDK example, the paste items are position on mouse position. You can modify the approach to fit in your main application.

Hope this project will be useful for your case.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Jakub
Top achievements
Rank 1
Iron
answered on 30 May 2019, 06:06 AM
Of course this project is helpful, thank you very much!
Tags
Diagram
Asked by
Jakub
Top achievements
Rank 1
Iron
Answers by
Dinko
Telerik team
Jakub
Top achievements
Rank 1
Iron
Share this question
or