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

create a connection between two shapes by mouse withoust using connectors

1 Answer 60 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
al
Top achievements
Rank 1
al asked on 19 Oct 2016, 07:32 AM

hi dear all,

i am using raddiagram to create a flowchart. normally, the user must select a shape to see shape's connectors and start connection manupulation from one of the connectors and create connection to other shape.

BUT:

i need to a connection manupulation to be started when a user go over the shape and click and hold and continiue to create connection by moving the hold mouse button to the other shape. also i need the connections to be started from the shape , not connector. in other words, i need the user to not to start connection manupulation by selectiong the shape connector. i mean the connection to be started automatically when the user click and hold left click on a non-selected shape  and whithout selecting any connectors of the shape(i prefer the shapes to not have any connectors or atleast they would be hidden).

best regards.

1 Answer, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 20 Oct 2016, 12:55 PM
Hello Al Samadian,

You can achieve that scenario by creating a CustomConnectionTool which will be holding the entire logic on how you create a connection. You can take a look at the CustomConnectorTool demo,in which we are creating connectors dynamically to which you can connect the start/end of a connection. Also please have in mind that the best way of hiding the connectors is to play with their opacity or visibility.

I hope this information helps.

Kind regards,
Kiril Vandov
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Tags
Diagram
Asked by
al
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Share this question
or