Defines the fluent interface for configuring the DataSource Model definition.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
Type of the model
Syntax:
public class DataSourceOrgChartModelDescriptorFactory<TModel> : DataSourceModelDescriptorFactoryBase<TModel> where TModel : class
Inheritance: objectDataSourceModelDescriptorFactoryBase<TModel>DataSourceOrgChartModelDescriptorFactory<TModel>
Inherited Members
Constructors
DataSourceOrgChartModelDescriptorFactory method.
public DataSourceOrgChartModelDescriptorFactory(OrgChartModelDescriptor model)
Methods
Specify the member used for the parentId field.
public DataSourceOrgChartModelFieldDescriptorBuilder<TValue> Avatar<TValue>(Expression<Func<TModel, TValue>> expression)
Member access expression which describes the member
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the member used for the parentId field.
public virtual DataSourceOrgChartModelFieldDescriptorBuilder<TValue> Avatar<TValue>(string memberName)
The member name.
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the default value of the expanded field.
public virtual DataSourceOrgChartModelDescriptorFactory<TModel> Expanded(bool defaultValue)
The member name.
Returns:DataSourceOrgChartModelDescriptorFactory<TModel>
A DataSourceOrgChartModelDescriptorFactory<TModel> instance for method chaining.
Specify the member used for the expanded field.
public DataSourceOrgChartModelFieldDescriptorBuilder<TValue> Expanded<TValue>(Expression<Func<TModel, TValue>> expression)
Member access expression which describes the member
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the member used for the expanded field.
public virtual DataSourceOrgChartModelFieldDescriptorBuilder<TValue> Expanded<TValue>(string memberName)
The member name.
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Describes a Model field
public virtual DataSourceOrgChartModelFieldDescriptorBuilder<object> Field(string memberName, Type memberType)
Field name
memberTypeTypeField type
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<object>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Describes a Model field
public virtual DataSourceOrgChartModelFieldDescriptorBuilder<TValue> Field<TValue>(Expression<Func<TModel, TValue>> expression)
Member access expression which describes the field
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Describes a Model field
public virtual DataSourceOrgChartModelFieldDescriptorBuilder<TValue> Field<TValue>(string memberName)
Member name
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the member used for the name field.
public DataSourceOrgChartModelFieldDescriptorBuilder<TValue> HasChildren<TValue>(Expression<Func<TModel, TValue>> expression)
Member access expression which describes the member
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the member used for the parentId field.
public virtual DataSourceOrgChartModelFieldDescriptorBuilder<TValue> HasChildren<TValue>(string memberName)
The member name.
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the member used to identify an unique Model instance.
Specify the member used to identify an unique Model instance.
public virtual void Id<TValue>(Expression<Func<TModel, TValue>> expression)
Member access expression which describes the member
Specify the member used for the name field.
public DataSourceOrgChartModelFieldDescriptorBuilder<TValue> Name<TValue>(Expression<Func<TModel, TValue>> expression)
Member access expression which describes the member
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the member used for the parentId field.
public virtual DataSourceOrgChartModelFieldDescriptorBuilder<TValue> Name<TValue>(string memberName)
The member name.
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the member used for the parentId field.
public DataSourceOrgChartModelFieldDescriptorBuilder<TValue> ParentId<TValue>(Expression<Func<TModel, TValue>> expression)
Member access expression which describes the member
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the member used for the parentId field.
public virtual DataSourceOrgChartModelFieldDescriptorBuilder<TValue> ParentId<TValue>(string memberName)
The member name.
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the member used for the parentId field.
public DataSourceOrgChartModelFieldDescriptorBuilder<TValue> Title<TValue>(Expression<Func<TModel, TValue>> expression)
Member access expression which describes the member
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.
Specify the member used for the parentId field.
public virtual DataSourceOrgChartModelFieldDescriptorBuilder<TValue> Title<TValue>(string memberName)
The member name.
Returns:DataSourceOrgChartModelFieldDescriptorBuilder<TValue>
A DataSourceOrgChartModelFieldDescriptorBuilder<T> instance for method chaining.