Skip to content

docs(Diagram): Add Diagram component documentation #3089

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Aug 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(Diagram): Continued
  • Loading branch information
dimodi committed Jul 2, 2025
commit ada275f47bfb7b29ee36fce5b1718a9cfec938cd
49 changes: 47 additions & 2 deletions components/diagram/connections.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,47 @@ position: 30

# Blazor Diagram Connections

The connections in the Telerik Diagram for Blazor signify the relationship between two shapes (graph nodes). This article describes the connection customization options that the Diagram provides.

## Basics

The fundamental settings of the Telerik Diagram connections include:

* The [connection `Type`](#connection-types) determines whether the .
* Selectable
* Cap Type

## Connection Types

## Editability

By default, the Diagram allows users to:

* Drag a connection by its start and end cap to link other shapes than the current ones.
* Remove the selected connection(s).

To restrict these operations globally for all connections, use the parameters of the `<DiagramConnectionDefaultsEditable>` tag.

To restrict operations for a specific connection, use the parameters of the `<DiagramConnectionEditable>` tag.

Connection dragging and removing requires the `Selectable` parameter of `<DiagramConnectionDefaults>` to be set to `true`, which is by default.

>caption Setting global and connection-specific editing options

````RAZOR.skip-repl
<TelerikDiagram>
<DiagramConnectionDefaults Selectable="true">
<DiagramConnectionDefaultsEditable Drag="true" Remove="true" />
</DiagramConnectionDefaults>

<DiagramConnections>
<DiagramConnection>
<DiagramConnectionEditable Enabled="false" />
</DiagramConnection>
</DiagramConnections>
</TelerikDiagram>
````

## Example

>caption Customize Diagram Connections
Expand Down Expand Up @@ -56,7 +97,11 @@ position: 30
</DiagramShapes>

<DiagramConnections>
<DiagramConnection FromId="shape1" ToId="shape2" />
<DiagramConnection FromId="shape1" ToId="shape2" FromConnector="@DiagramConnectionsFromConnector.Left">
<DiagramConnectionPoints>
<DiagramConnectionPoint X="100" Y="120" />
</DiagramConnectionPoints>
</DiagramConnection>
<DiagramConnection FromId="shape1" ToId="shape3" Type="@DiagramConnectionType.Cascading">
<DiagramConnectionContent Text="1 to 3" />
<DiagramConnectionEditable Enabled="false" />
Expand All @@ -81,7 +126,7 @@ position: 30
</DiagramConnection>
<DiagramConnection>
<DiagramConnectionContent Text="Connection with no shapes" />
<DiagramConnectionFrom X="300" Y="100" />
<DiagramConnectionFrom X="330" Y="100" />
<DiagramConnectionTo X="400" Y="200" />
</DiagramConnection>
</DiagramConnections>
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy