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

DiagramSelectableSettingsBuilder

Methods

Stroke(System.Action)

Defines the selection line configuration.

Parameters

configurator - System.Action<DiagramSelectableStrokeSettingsBuilder>

The action that configures the stroke settings.

Example


             @(Html.Kendo().Diagram()
               .Name("diagram")
               .Selectable(s => s.Stroke(stroke => stroke.Color("blue").Width(2).DashType("longDashDot")))
             )

Key(Kendo.Mvc.UI.DiagramSelectableKey)

Defines the meta key when doing a visual selection through drawing a rectangular area around shapes in the canvas. This option does not change the way a single shape is selected when using click or tap. To avoid clashes, verify that the selectable.key and pannable.key are different.

Parameters

value - DiagramSelectableKey

The value that configures the meta key.

Example


             @(Html.Kendo().Diagram()
               .Name("diagram")
               .Selectable(s => s.Key(DiagramSelectableKey.Ctrl))
             )

Multiple(System.Boolean)

Specifies if the multiple selection must be enabled.

Parameters

value - System.Boolean

The value that configures the multiple selection.

Example


             @(Html.Kendo().Diagram()
               .Name("diagram")
               .Selectable(s => s.Multiple(false))
             )

In this article
Not finding the help you need?