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

Defines the fluent interface for configuring the DataSource Model definition.

Definition

Constructors

C#
public DiagramConnectionModelDescriptorFactory(DiagramConnectionModelDescriptor model)
Parameters:modelDiagramConnectionModelDescriptor

Methods

Defines the source of the connection.

C#
public void From(string fieldName)
Parameters:fieldNamestring

The member name.

Example:
C#
@( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.ConnectionsDataSource(dataSource => dataSource
.Model(model => model.From("FromShapeId"))
)
)

Defines the source of the connection.

C#
public void From<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression that describes the member

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.From(f =&gt; f.FromShapeId))
)
)

Specifies the member used for the source shape connector.

C#
public void FromConnector(string fieldName)
Parameters:fieldNamestring

The member name.

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.FromConnector("Left"))
)
)

Specifies the member used for the source shape connector.

C#
public void FromConnector<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.FromConnector(f =&gt; f.Left))
)
)

Defines the absolute point (X-coordinate), if any, that the connection is originating from.

C#
public void FromX(string fieldName)
Parameters:fieldNamestring

The member name.

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.FromX("FromPointX"))
)
)

Defines the absolute point (X-coordinate), if any, that the connection is originating from.

C#
public void FromX<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.FromX(x =&gt; x.FromPointX))
)
)

Defines the absolute point (Y-coordinate), if any, that the connection is originating from.

C#
public void FromY(string fieldName)
Parameters:fieldNamestring

The member name.

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.FromY("FromPointY"))
)
)

Defines the absolute point (Y-coordinate), if any, that the connection is originating from.

C#
public void FromY<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.FromY(y =&gt; y.FromPointY))
)
)

Specifies the member used for the text displayed on the connection.

C#
public void Text(string fieldName)
Parameters:fieldNamestring

The member name.

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.Text("ConnectionText"))
)
)

Specifies the member used for the text displayed on the connection.

C#
public void Text<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.Text(t =&gt; t.ConnectionText))
)
)

Defines the target of the connection.

C#
public void To(string fieldName)
Parameters:fieldNamestring

The member name.

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.To("ToShapeId"))
)
)

Defines the target of the connection.

C#
public void To<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.To(f =&gt; f.ToShapeId))
)
)

Specifies the member used for the target shape connector.

C#
public void ToConnector(string fieldName)
Parameters:fieldNamestring

The member name.

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.ToConnector("Bottom"))
)
)

Specifies the member used for the target shape connector.

C#
public void ToConnector<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.ToConnector(x =&gt; x.Bottom))
)
)

Defines the absolute point (X-coordinate), if any, that the connection is pointing to.

C#
public void ToX(string fieldName)
Parameters:fieldNamestring

The member name.

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.ToX("ToPointX"))
)
)

Defines the absolute point (X-coordinate), if any, that the connection is pointing to.

C#
public void ToX<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.ToX(c =&gt; c.ToPointX))
)
)

Defines the absolute point (Y-coordinate), if any, that the connection is pointing to.

C#
public void ToY(string fieldName)
Parameters:fieldNamestring

The member name.

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.ToY("ToPointY"))
)
)

Defines the absolute point (Y-coordinate), if any, that the connection is pointing to.

C#
public void ToY<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.ToY(c =&gt; c.ToPointY))
)
)

Specifies the member used for the connection type.

C#
public void Type(string fieldName)
Parameters:fieldNamestring

The member name.

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.Type("ConnectionType"))
)
)

Specifies the member used for the connection type.

C#
public void Type<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

Member access expression which describes the member

Example:
C#
@( Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ConnectionsDataSource(dataSource =&gt; dataSource
.Model(model =&gt; model.Type(t =&gt; t.ConnectionType))
)
)