)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: WinForms |
Control: Diagram |
Published Date: November 13, 2015 |
Last Revised Date: June 3, 2019

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 Diagram’s 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.

 

 

 

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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