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

Drag/drop the childNode and connect that childNode to the parent node like as Visio

Drag / drop the childNode and connect that childNode to the parent node like as Visio

In Syncfusion Diagram we can implement viewing the possible connectable nodes and also connect the child node with the parent node while performing Drag/Drop like as visio. It can be achieved in the sample side itself as directions instructed below.

In Diagram we can view some of its possible connectable nodes using the Diagrams SelectionListChanged event. This Event raises when the current Diagram views selection list is changed.

Initially need to create the child nodes by disabling its visiblity and add the custom properties to the child nodes using the Node’s PropertyBag property. When the user clicks the Root node the possible connectable nodes (child node) will be displayed over the transparent rectangle. The Transparent rectangle’s selection is restricted.

When the user moves the child node from the rootnode the PinPointChanging event fires and the parent node is assigned. When the user drops the node the PinPointChanged event fires and the connection between the child node and the parent node is established.

Please refer the below attached sample.

Sample

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5701 11/13/2015 11/13/2015 Windows Forms Diagram
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.