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

Get node detail one by one just after creation with label

Thread ID:





151253 Feb 5,2020 07:07 AM UTC Feb 6,2020 12:29 PM UTC Angular - EJ 2 1
Tags: Diagram
Asked On February 5, 2020 07:07 AM UTC

 I want to get the node data which is current created by user using dragdrop like its (Id, Label) and if it is connected to any node using connecter then,
also it should get (Id of the connecter, Label of the connecter and, source (from node id) and destination(to node id) of the connecter).

So that I can save all its data in database and do operations (update/delete) on any node and connecter further using the saved data.

Please help.

Naganathan Ganesh Babu [Syncfusion]
Replied On February 6, 2020 12:29 PM UTC

Hi Rakhi, 
Please use “collectionChange” event to get the node/connector details while adding into the diagram. Also use “connectionChange” event to get source/target node details from the connector while changing the connection. Please refer to the below code example and sample. 
Code example: 
  public connectionChange(args: IConnectionChangeEventArgs): void {     
      if (args.state === 'Changed') { 
        let connector = args.connector; 
        //Get from/to node details using sourceid/targetId while changing the connection... 
  public collectionChange(args: ICollectionChangeEventArgs): void { 
      if(args.state === 'Changed'){ 
        let node = args.element; 
        //Get node/connector details from here while adding the node/connectors... 
Naganathan K 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