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

Defines the fluent API for configuring the FormItem settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class FormItemsContainerBuilder<T> where T : class

Inheritance: objectFormItemsContainerBuilder<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initialize the FormItemsContainerBuilder

C#
public FormItemsContainerBuilder(FormItem settings, ViewContext viewContext, IUrlGenerator generator)
Parameters:settingsFormItem

The FormItem

viewContextViewContextgeneratorIUrlGenerator

Methods

Defines the field size when grid layout is used.

C#
public FormItemsContainerBuilder<T> ColSpan(double value)
Parameters:valuedoubleReturns:

FormItemsContainerBuilder<T>

Grid layout settings.

C#
public FormItemsContainerBuilder<T> Grid(Action<FormGridSettingsBuilder<T>> configurator)
Parameters:configuratorAction<FormGridSettingsBuilder<T>>

The action that configures the grid.

Returns:

FormItemsContainerBuilder<T>

A JavaScript array that contains the Form's items configuration.

C#
public FormItemsContainerBuilder<T> Items(Action<FormItemFactory<T>> configurator)
Parameters:configuratorAction<FormItemFactory<T>>

The action that configures the items.

Returns:

FormItemsContainerBuilder<T>

Defines the field label.

C#
public FormItemsContainerBuilder<T> Label(string value)
Parameters:valuestring

The value that configures the label.

Returns:

FormItemsContainerBuilder<T>

Specify the layout of the Group. Valid options are: grid: This is equivalent to display: grid. It defines the form element as a grid container and establishes a new grid formatting context for its contents..

C#
public FormItemsContainerBuilder<T> Layout(string value)
Parameters:valuestring

The value that configures the layout of the Group.

Returns:

FormItemsContainerBuilder<T>