Articles in this section
Category / Section

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

1 min read

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.

 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied