New to Telerik UI for ASP.NET MVC? Download free 30-day trial

DiagramConnectionDefaultsEndCapSettingsBuilder

Methods

Fill(System.Action)

Defines the default end cap fill options of the connections.

Parameters

configurator - System.Action<DiagramConnectionDefaultsEndCapFillSettingsBuilder>

The action that configures the fill settings.

Example


             @(Html.Kendo().Diagram()
              .Name("diagram")
              .ConnectionDefaults(cd => cd
                .EndCap(endCap => endCap.Fill(f => f.Color("red")))
               )
             )

Stroke(System.Action)

Defines the default end cap stroke options of the connections.

Parameters

configurator - System.Action<DiagramConnectionDefaultsEndCapStrokeSettingsBuilder>

The action that configures the stroke settings.

Example


             @(Html.Kendo().Diagram()
              .Name("diagram")
              .ConnectionDefaults(cd => cd
                .EndCap(endCap => endCap.Stroke(s => s.Color("blue").Width(2)))
               )
             )

Type(System.String)

Specifies the default end cap type used in the connections. The supported values are: "none" (default), "ArrowEnd" (a filled arrow), and "FilledCircle" (a filled circle).

Parameters

value - System.String

The value that configures the end cap type.

Example


             @(Html.Kendo().Diagram()
              .Name("diagram")
              .ConnectionDefaults(cd => cd
                .EndCap(endCap => endCap.Type("FilledCircle"))
               )
             )

In this article
Not finding the help you need?