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

Defines the fluent interface for configuring the ModelFieldDescriptor.

Definition

Constructors

C#
public CustomDataSourceModelFieldDescriptorBuilder(ModelFieldDescriptor descriptor)
Parameters:descriptorModelFieldDescriptor

Methods

Specifies the field of the original record which value to be used for population of the Model field.

C#
public virtual CustomDataSourceModelFieldDescriptorBuilder<T> From(string fromField)
Parameters:fromFieldstring

The field of the original record which value to be used

Returns:

CustomDataSourceModelFieldDescriptorBuilder<T>

Specifies the handler which will parse the field value. If not set default parsers will be used.

C#
public virtual CustomDataSourceModelFieldDescriptorBuilder<T> Parse(Func<object, object> handler)
Parameters:handlerFunc<object, object>Returns:

CustomDataSourceModelFieldDescriptorBuilder<T>

Specifies the handler which will parse the field value. If not set default parsers will be used.

C#
public virtual CustomDataSourceModelFieldDescriptorBuilder<T> Parse(string handler)
Parameters:handlerstring

The handler

Returns:

CustomDataSourceModelFieldDescriptorBuilder<T>