Thanks for using Syncfusion products.
We suggest you to use the DiagramWebControl’s client side method ‘Activate’ to activate the drawing tools like Rectangle, Ellipse, LineConnector, OrthogonalConnector, etc.,. Please refer the below code snippet to achieve your requirement.
Here is the code:
<asp:ImageButton ID="btnDirected" runat="server" ImageUrl="~/Content/NodeImages/icons_11.png" OnClientClick="_sfDiagramWebControl1.Activate('DirectedLineConnectorTool'); return false;"/>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<syncfusion:DiagramWebControl ID="DiagramWebControl1" runat="server" Height="550px"
For more information, please visit the below online UG documentation link:
Please try the below attached sample and let us know if you have any queries.
Amsath Ali. M
Thanks for your update.
Currently we don’t have support to draw a link that connects
two nodes at run time without clicking a button. This has been suspected to be
a feature. Please create a DT incident for your query so that we can update the
patch for this feature.
You can create the DT incident from the following link.
In the interests of maintaining confidentiality, we have a policy of not sharing patches or otherwise proprietary customer specific information in the public Forum.
Please let us know if you have any queries.
Amsath Ali. M