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 DataSourceOrgChartModelFieldDescriptorBuilder(ModelFieldDescriptor descriptor)
Parameters:descriptorModelFieldDescriptor

Methods

Specifies if the defaultValue setting should be used. The default is false.

C#
public virtual DataSourceOrgChartModelFieldDescriptorBuilder<T> Nullable(bool value = true)
Parameters:valuebool

The value

Returns:

DataSourceOrgChartModelFieldDescriptorBuilder<T>

Example:
C#
@(Html.Kendo().OrgChart&lt;OrgChartEmployeeViewModel&gt;()
.Name("orgchart")
.DataSource(dataSource =&gt; dataSource
.Read(read =&gt; read.Action("RemoteDataBindingData", "OrgChart"))
.Model(m =&gt; {
m.Field(f =&gt; f.Name).Nullable(false);
})
)
)