Hi Hayssam,
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:
[ASPX]
<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"
Width="600px"
/>
For more information, please visit the below online UG
documentation link:
http://help.syncfusion.com/ug/asp.net/diagram/documents/uidrawingtools.htm
Please try the below attached sample and let us know if you
have any queries.
Regards,
Amsath Ali. M
F108973_2b11c95f.zip