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.
Please refer the below attached sample.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|