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

DiagramConnectionModelDescriptorFactory

Methods

From(System.Linq.Expressions.Expression)

Defines the source of the connection.

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression that describes the member

Example


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

From(System.String)

Defines the source of the connection.

Parameters

fieldName - System.String

The member name.

Example


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

To(System.Linq.Expressions.Expression)

Defines the target of the connection.

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.To(f => f.ToShapeId))
                )
             )

To(System.String)

Defines the target of the connection.

Parameters

fieldName - System.String

The member name.

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.To("ToShapeId"))
                )
             )

FromX(System.Linq.Expressions.Expression)

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

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.FromX(x => x.FromPointX))
                )
             )

FromX(System.String)

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

Parameters

fieldName - System.String

The member name.

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.FromX("FromPointX"))
                )
             )

FromY(System.Linq.Expressions.Expression)

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

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.FromY(y => y.FromPointY))
                )
             )

FromY(System.String)

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

Parameters

fieldName - System.String

The member name.

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.FromY("FromPointY"))
                )
             )

ToX(System.Linq.Expressions.Expression)

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

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.ToX(c => c.ToPointX))
                )
             )

ToX(System.String)

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

Parameters

fieldName - System.String

The member name.

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.ToX("ToPointX"))
                )
             )

ToY(System.Linq.Expressions.Expression)

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

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.ToY(c => c.ToPointY))
                )
             )

ToY(System.String)

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

Parameters

fieldName - System.String

The member name.

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.ToY("ToPointY"))
                )
             )

Type(System.Linq.Expressions.Expression)

Specifies the member used for the connection type.

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.Type(t => t.ConnectionType))
                )
             )

Type(System.String)

Specifies the member used for the connection type.

Parameters

fieldName - System.String

The member name.

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.Type("ConnectionType"))
                )
             )

Text(System.Linq.Expressions.Expression)

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

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.Text(t => t.ConnectionText))
                )
             )

Text(System.String)

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

Parameters

fieldName - System.String

The member name.

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.Text("ConnectionText"))
                )
             )

FromConnector(System.Linq.Expressions.Expression)

Specifies the member used for the source shape connector.

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.FromConnector(f => f.Left))
                )
             )

FromConnector(System.String)

Specifies the member used for the source shape connector.

Parameters

fieldName - System.String

The member name.

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.FromConnector("Left"))
                )
             )

ToConnector(System.Linq.Expressions.Expression)

Specifies the member used for the target shape connector.

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.ToConnector(x => x.Bottom))
                )
             )

ToConnector(System.String)

Specifies the member used for the target shape connector.

Parameters

fieldName - System.String

The member name.

Example


             @( Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                .ConnectionsDataSource(dataSource => dataSource
                    .Model(model => model.ToConnector("Bottom"))
                )
             )

Id(System.String)

Specify the member used to identify an unique Model instance.

Parameters

fieldName - System.String

The member name.

Example


            .DataSource(dataSource => dataSource
                    .Ajax()
                    .Model(m => m.Id("OrderID"))
            )

Id(System.Linq.Expressions.Expression)

Specify the member used to identify an unique Model instance.

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


            .DataSource(dataSource => dataSource
                    .Ajax()
                    .Model(m => m.Id(o => o.OrderID))
            )

Field(System.Linq.Expressions.Expression)

Describes a Model field

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the field

Example


            .DataSource(dataSource => dataSource
                    .Ajax()
                    .Model(m => m.Field(f => f.ShipName).Editable(false))
            )

Field(System.String,System.Type)

Describes a Model field

Parameters

memberName - System.String

Field name

memberType - System.Type

Field type

Example


            .DataSource(dataSource => dataSource
                    .Ajax()
                    .Model(m => m.Field("ShipName", typeof(string)))
            )

Field(System.String)

Describes a Model field

Parameters

memberName - System.String

Member name

In this article
Not finding the help you need?