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

GanttDependencyModelDescriptorFactory

Methods

Type(System.Linq.Expressions.Expression)

Specify the member used for the Type field.

Parameters

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

Member access expression which describes the member

Type(System.String)

Specify the member used for the Type field.

Parameters

fieldName - System.String

The member name.

PredecessorId(System.Linq.Expressions.Expression)

Specify the member used for the PredecessorId field.

Parameters

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

Member access expression which describes the member

PredecessorId(System.String)

Specify the member used for the PredecessorId field.

Parameters

fieldName - System.String

The member name.

SuccessorId(System.Linq.Expressions.Expression)

Specify the member used for the SuccessorId field.

Parameters

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

Member access expression which describes the member

SuccessorId(System.String)

Specify the member used for the SuccessorId field.

Parameters

fieldName - System.String

The member name.

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?