Enforce DragSegmentThumb for all connections

Hi,

This issue was fixed:

https://www.syncfusion.com/forums/166238/exception-when-trying-to-draw-connection-from-port

So now I can click on a port and drag a new connection from it.

That works fine.


However I would like for all my connections to include the constrain "

ConnectorConstraints.DragSegmentThumb".

How is that done when a user create a new connection directly from a port?


3 Replies 1 reply marked as answer

AM Arunkumar Manoharan Syncfusion Team July 22, 2021 12:44 PM UTC

Hi Torben,   
We suggest you use ConnectorDefaults for your requirement, and we have created a sample on ConnectorDefaults. in this sample we added the ConnectorConstraints.DragSegmentThumb to the connector connections in ConnectorDefaults by setting it in it will be applied to all the connectors in the diagram. For more information, please refer to the sample link and code snippet. 
 
Code snippet: 
ConnectorDefaults = new DiagramConnector() 
        { 
            Style = new ConnectorShapeStyle() { StrokeColor = "#797979" }, 
            Constraints = ConnectorConstraints.Default | ConnectorConstraints.DragSegmentThumb 
        }; 
 
 
Regards, 
Arun. 


Marked as answer

TL Torben Laursen July 22, 2021 09:02 PM UTC

Thanks, just what I needed



GG Gowtham Gunashekar Syncfusion Team July 23, 2021 12:32 PM UTC

Hi Torben,   
 
Thanks for your update. Please let us know whether you need any further assistance on this. 
 
 
Regards, 
Gowtham 


Loader.
Up arrow icon