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

GanttModelDescriptorFactory

Methods

ParentId(System.Linq.Expressions.Expression)

Specify the member used for the parentId.

Parameters

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

Member access expression which describes the member

Example


            .DataSource(d => d
                .Model(m =>
                {
                    m.Id(f => f.TaskIdField);
                    m.ParentId(f => f.ParentIdField);
                })
            )

ParentId(System.String)

Specify the member used for the parentId.

Parameters

fieldName - System.String

The member name.

Example


            .DataSource(d => d
                .Model(m =>
                {
                    m.Id(f => f.TaskIdField);
                    m.ParentId("ParentId");
                })
            )

OrderId(System.Linq.Expressions.Expression)

Specify the member used for the orderId.

Parameters

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

Member access expression which describes the member

Example


            .DataSource(d => d
                .Model(m =>
                {
                    m.Id(f => f.TaskIdField);
                    m.ParentId(f => f.ParentIdField);
                })
            )

OrderId(System.String)

Specify the member used for the orderId.

Parameters

fieldName - System.String

The member name.

Example


            .DataSource(d => d
                .Model(m =>
                {
                    m.Id(f => f.TaskIdField);
                    m.ParentId("ParentId");
                })
            )

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?