Hi ,
You can access the array containing all connections of a Diagram through the diagram Kendo UI widget like folows:
Unfortunately, as the connections do not expose an id property (their ID is automatically generated), the only possible approach I can suggest you in order to differentiate between the different connections is to implement your logic depending on each connection's from- and to- shape. For example:
Regards,
Vessy
Telerik
You can access the array containing all connections of a Diagram through the diagram Kendo UI widget like folows:
$find("RadDiagram1").get_kendoWidget().connections;Unfortunately, as the connections do not expose an id property (their ID is automatically generated), the only possible approach I can suggest you in order to differentiate between the different connections is to implement your logic depending on each connection's from- and to- shape. For example:
function getConnetion() { var diagram = $find("RadDiagram1").get_kendoWidget(); var connections = diagram.connections; var conID, fromShape, toShape; for (var i = 0; i < connections.lenght; i++) { fromShape = diagram.connections[i].from; toShape = diagram.connections[i].from; conID = getConnectionID(fromShape, toShape); } }function getConnectionID(fromShape, toShape) { var returnValue = ""; if (fromShape == "s1" && toShape == "s2") { returnValue = "connection1"; } else if (fromShape == "s2" && toShape == "s3") { returnValue = "connection3"; } //etc. return returnValue;}Regards,
Vessy
Telerik