I want to add two connected connectors when I drag and drop a node from the palette. While it is possible to add them manually using "add" in the drop event, the problem is that the node is created after the drop event (when the connection is created), so there is no actual connection.
Is there an API or Method available to solve this?
Alternatively, are there any other events that can be used to solve this (such as "nodeCreated")?
SJSivaranjith Jeyabalan Syncfusion Team April 4, 2023 08:15 AM UTC
We have achieved your
requirement using collectionChange event. When we drag and drop a node
from the palette to the diagram, the collectionChange event will be
triggered. In this event, we connect a node with two connectors as per your
requirement. Please find the sample and code example below.