We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Connector only connected with ports

Will it  be possible to give constraints to the connector  
so the connector can only be connected with the ports and not the node? 
Or Is it the node that I have to give constraints to? 

P.S  Always Grateful for  syncfusion's timely support. 

1 Reply

SG Shyam G Syncfusion Team July 22, 2015 06:21 AM UTC

Hi Maverick

Thanks for using Syncfusion products.

Please note that by default, the connect NodeConstraints is added to the NodeConstraints.Default. So we suggest you to remove the  connect NodeConstraints from the NodeConstraints.Default in order to achieve your requirement. Please refer the code snippet and sample below.

Code snippet:

<div id="diagram"></div>

 $("#diagram").ejDiagram({

            nodes: [

            { name: "node1", constraints: ej.datavisualization.Diagram.NodeConstraints.Default & ~(ej.datavisualization.Diagram.NodeConstraints.Connect) },

 
        });

Sample:http://www.syncfusion.com/downloads/support/forum/119677/ze/Diagram-26026107

Please let me know if any concerns.

Regards,
Shyam G


Loader.
Live Chat Icon For mobile
Up arrow icon