DiagramShapeModelDescriptorFactory
Methods
Width(System.Linq.Expressions.Expression)
Specifies the member used for the width of the shape.
Parameters
expression - System.Linq.Expressions.Expression<Func>
Member access expression which describes the member
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.Width(f => f.ShapeWidth);
})
)
)
Width(System.String)
Specifies the member used for the width of the shape.
Parameters
fieldName - System.String
The member name.
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.Width("ShapeWidth");
})
)
)
Height(System.Linq.Expressions.Expression)
Specifies the member used for the height of the shape.
Parameters
expression - System.Linq.Expressions.Expression<Func>
Member access expression which describes the member
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.Height(f => f.ShapeHeight);
})
)
)
Height(System.String)
Specifies the member used for the height of the shape.
Parameters
fieldName - System.String
The member name.
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.Height("ShapeHeight");
})
)
)
X(System.Linq.Expressions.Expression)
Specifies the member used for the x-coordinate of the shape.
Parameters
expression - System.Linq.Expressions.Expression<Func>
Member access expression which describes the member
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.X(f => f.XField);
})
)
)
X(System.String)
Specifies the member used for the x-coordinate of the shape.
Parameters
fieldName - System.String
The member name.
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.X("XField");
})
)
)
Y(System.Linq.Expressions.Expression)
Specifies the member used for the y-coordinate of the shape.
Parameters
expression - System.Linq.Expressions.Expression<Func>
Member access expression which describes the member
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.Y(f => f.YField);
})
)
)
Y(System.String)
Specifies the member used for the y-coordinate of the shape.
Parameters
fieldName - System.String
The member name.
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.Y("YField");
})
)
)
Type(System.Linq.Expressions.Expression)
Specifies the member used for the type of the shape.
Parameters
expression - System.Linq.Expressions.Expression<Func>
Member access expression which describes the member
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.Type(f => f.Type);
})
)
)
Type(System.String)
Specifies the member used for the type of the shape.
Parameters
fieldName - System.String
The member name.
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.Type("TypeField");
})
)
)
Text(System.Linq.Expressions.Expression)
Specifies the member used for the text of the shape.
Parameters
expression - System.Linq.Expressions.Expression<Func>
Member access expression which describes the member
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.Text(f => f.TextField);
})
)
)
Text(System.String)
Specifies the member used for the text of the shape.
Parameters
fieldName - System.String
The member name.
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.DataSource(dataSource => dataSource
.ShapeDataSource()
.Model(m =>
{
m.Text("TextField");
})
)
)
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