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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

validation of connectors

Thread ID:





147779 Sep 24,2019 02:57 AM UTC Sep 24,2019 08:53 AM UTC ASP.NET Core - EJ 2 3
Tags: Diagram
Aung Myo
Asked On September 24, 2019 02:57 AM UTC


I want to make sure the connectors are connected to the nodes. I mean I want to validate all connectors have target process and source process. how can I validate in front-end?


Shyam G [Syncfusion]
Replied On September 24, 2019 06:44 AM UTC

Hi Aung, 

The connectors sourceID and targetID  properties are used to determine the connection established between the sourceNode and targetNode respectively. These properties will have a node id.  Please refer to a code example below. 

Code example: 
//create button 
<input type="button" value="getConnectors" onclick="getConnectors()"/> 

//method called on button click 
function getConnectors() { 
  var diagram = document.getElementById("diagram").ej2_instances[0]; 
  //get connectors in diagram 
  var connectors = diagram.connectors; 
  //iterate connectors 
  for( var i=0; i <connectors.length; i++) { 
    var connector = connectors[i]; 
    //get sourceNode id 
    //get targetNode id 

Shyam G 

Aung Myo
Replied On September 24, 2019 07:34 AM UTC

Hi Shyam,

Thanks for your reply. That's exactly what I want. Thank you very much!

Shyam G [Syncfusion]
Replied On September 24, 2019 08:53 AM UTC

Hi Aung, 
Thanks for your update. 
Shyam G 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon