The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I wanted to connect two nodes using connecter but instead to drag connector from symbol pallette, i would like to drag connecter directly from one node to another node.
List < DiagramNode > nodes = new List < DiagramNode > ();
nodes.Add(new Node() {
Id = "node1",
//..
//..
Ports = ports1
});
ViewBag.nodes = nodes;
>>>>>>>>>>>>
We can set the the drawing tool as DrawOnce or ContinousDraw and set drawing object as connector so that we can establish the connector from one node to another node.
var diagram = document.getElementById("diagram").ej2_instances[0];
var connector = {type: "Orthogonal"};
diagram.drawingObject = connector;
diagram.dataBind();
}
>>>>>>>>>>>>>>>>>
Regards,
Senthil Kumar V
IAirwan azam ahmadSeptember 5, 2018 06:59 AM UTC
Hi Senthil
Thank you very much, I'm able to drag connector from one node to another node but have another requirement. Currently when using continuos draw I cannot move node anymore after connect with the connector.
SKSenthil Kumar Venkatesan Syncfusion Team September 6, 2018 12:45 PM UTC
Hi Irwan,
In tool instead of enabling “ContinousDraw ” we can enable “DrawOnce” so that you can draw connector once in between the nodes. If you need “ContinousDraw” tool to be enabled then you can change the tool by any button click once the connectors has been drawn .
Regards,
Senthil Kumar V
SKSenthil Kumar Venkatesan Syncfusion Team September 7, 2018 12:49 PM UTC
Hi Irwan, As per your requirement ,You can add port for the node and enable “Draw” for the port constraints so that you can draw the connectors from the nodes and also you can select and drag the node . If you enable “ContinousDraw” then as per the functionality you cannot able to select the node you can continuously draw the connectors from one point to another and you can disable the too by any button click .We had provided the code snippet of how to enable the port Costraints in the previous update . Kindly find the UG diagram document for your reference . Link:PortLink Link:ToolLink
Regards,
Senthil Kumar V
Need More Help?
Get personalized assistance from our support team.