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

GanttDependenciesModelDescriptorFactory

Methods

PredecessorId(System.Linq.Expressions.Expression)

Specify the member used for the predecessorId.

Parameters

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

Member access expression which describes the member

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .DependenciesDataSource(d => d
                 .Model(m =>
                 {
                     m.Id(f => f.DependencyIdField);
                     m.PredecessorId(f => f.PredecessorIdField);
                 })
             )
            )

PredecessorId(System.String)

Specify the member used for the predecessorId.

Parameters

fieldName - System.String

The member name.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .DependenciesDataSource(d => d
                 .Model(m =>
                 {
                     m.Id(f => f.DependencyIdField);
                     m.PredecessorId("Field");
                 })
             )
            )

SuccessorId(System.Linq.Expressions.Expression)

Specify the member used for the successorId.

Parameters

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

Member access expression which describes the member

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .DependenciesDataSource(d => d
                 .Model(m =>
                 {
                     m.Id(f => f.DependencyIdField);
                     m.SuccessorId(f => f.SuccessorIdField);
                 })
             )
            )

SuccessorId(System.String)

Specify the member used for the successorId.

Parameters

fieldName - System.String

The member name.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .DependenciesDataSource(d => d
                 .Model(m =>
                 {
                     m.Id(f => f.DependencyIdField);
                     m.SuccessorId("Field");
                 })
             )
            )

Type(System.Linq.Expressions.Expression)

Specify the member used for the type.

Parameters

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

Member access expression which describes the member

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .DependenciesDataSource(d => d
                 .Model(m =>
                 {
                     m.Id(f => f.DependencyIdField);
                     m.Type(f => f.TypeField);
                 })
             )
            )

Type(System.String)

Specify the member used for the type.

Parameters

fieldName - System.String

The member name.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .DependenciesDataSource(d => d
                 .Model(m =>
                 {
                     m.Id(f => f.DependencyIdField);
                     m.Type("Field");
                 })
             )
            )

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?