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

Drag Drop from Toolbox

1 Answer 79 Views
Diagram, DiagramRibbonBar, DiagramToolBox
This is a migrated thread and some comments may be shown as answers.
Bernhard
Top achievements
Rank 1
Bernhard asked on 20 Mar 2019, 09:50 AM

Hi.

What is the best way to react to a shape being drag-dropped onto the diagram from the toolbox?

The toolbox is in an additional form.

Regards 

Bernhard

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Mar 2019, 12:20 PM
Hello, Bernhard,

Note that RadDiagramToolbox is a derivative of RadListView. Hence, it handles the whole drag and drop operation by its ListViewDragDropService. It provides a convenient public API that can be useful for handling any moment of dragging a shape from the RadDiagramToolbox to the RadDiagram.

Please refer to the following help articles which will get you familiar with the API that you can use:

https://docs.telerik.com/devtools/winforms/controls/listview/drag-and-drop/listviewdragdropservice
https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/raddragdropservice

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
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.
Tags
Diagram, DiagramRibbonBar, DiagramToolBox
Asked by
Bernhard
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or