GanttTaskModelDescriptorFactory
Methods
OrderId(System.Linq.Expressions.Expression)
Specify the member used for the OrderId field.
Parameters
expression - System.Linq.Expressions.Expression<Func>
Member access expression which describes the member
OrderId(System.String)
Specify the member used for the OrderId field.
Parameters
fieldName - System.String
The member name.
ParentId(System.Linq.Expressions.Expression)
Specify the member used for the ParentId field.
Parameters
expression - System.Linq.Expressions.Expression<Func>
Member access expression which describes the member
ParentId(System.String)
Specify the member used for the ParentId 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