This is a migrated thread and some comments may be shown as answers.

Connections sometimes below connectors

1 Answer 31 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 05 Jun 2013, 03:27 PM
I have custom styled connections and connectors. When I drag a connection between connector A and B, the line is (correctly) on top of the connectors. However, as soon as I have selected the nodes, the connectors end up on top of the line! This weirdness is preserved if I remove the connection and add a new one.

What is causing the connection's line to become obscured by the connectors?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 06 Jun 2013, 06:46 AM
Hello Kristoffer,

Connectors are part of the Shapes and by default, Shapes' ZIndex is set to 2 and Connections ZIndex is set to 1 via style. But when you are attaching a connection, it's essential that the connection is on top of the shapes and we are controlling / ensuring this in code. Imagine trying to attach a connection but unable to see it because it is behind the shapes.
Summary:
By design in normal mode (Pointer Tool) shapes are on top of connections.
By design in connection manipulation mode (Connector Tool or simply when attaching / detaching connection) connections are on top of the shapes.

Regards,
Petar Mladenov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Diagram
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or