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

Defines the fluent API for configuring the DiagramConnection settings.

Definition

Constructors

C#
public DiagramDataSourceBuilder(DataSource dataSource, ViewContext viewContext, IUrlGenerator urlGenerator)
Parameters:dataSourceDataSourceviewContextViewContexturlGeneratorIUrlGenerator

Fields

C#
protected DataSource dataSource
C#
protected readonly IUrlGenerator urlGenerator

viewContext

ViewContext

C#
protected readonly ViewContext viewContext

Methods

Defines the shapes DataSource of the Diagram component.

C#
public DiagramShapeDataSourceBuilder<TModel> ShapeDataSource()
Returns:

DiagramShapeDataSourceBuilder<TModel>

Example:
C#
@(Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.DataSource(dataSource =&gt; dataSource
.ShapeDataSource()
.Read("ReadShapes", "DiagramData")
)
)