Adding connectors at runtime

Hi, 

I am trying to add connectors to nodes at runtime. When I place a new node on the canvas, I want it to automatically create a connector to the previous node that was placed. I have successfully done this, however there is a problem. 

When the I drag the newly placed node, the connector doesn't attach but if I move the previous node first, the connector works as expected. Is this a bug in my implementation or in the software itself? 

Thank you

1 Reply

AR Aravind Ravi Syncfusion Team May 15, 2020 07:49 AM UTC

Hi David, 

We have created a sample to create connector for newly added node. In this sample we have add node at run time for that newly added node we have create connection to node that previously placed in the diagram. After node gets added the connector connects to the node has been dragged properly. We have attached a sample for your reference. Please find the sample in below link 


If we misunderstood your requirement please share your requirement in detail or video representation of your requirement which would help us to serve you better. 

Regards 
Aravind Ravi 


Loader.
Up arrow icon