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

Builder for configuring a FormItem container that holds multiple items.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class FormItemsContainerBuilder<T>

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

Initializes a new instance of the FormItemsContainerBuilder<T> class.

C#
public FormItemsContainerBuilder(FormItem container, ViewContext viewContext)
Parameters:containerFormItem

The form item

viewContextViewContext

The view context

Properties

Gets the settings being configured.

C#
protected FormItem Container { get; }

Methods

Defines the field size when grid layout is used.

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

FormItemsContainerBuilder<T>

A FormItemsContainerBuilder<T> instance that can be used to configure the FormItemContainer.

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 FormItemsContainerBuilder<T> instance that can be used to configure the FormItemContainer.

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>

A FormItemsContainerBuilder<T> instance that can be used to configure the FormItemContainer.

Defines the field label.

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

The value that configures the label.

Returns:

FormItemsContainerBuilder<T>

A FormItemsContainerBuilder<T> instance that can be used to configure the FormItemContainer.

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>

A FormItemsContainerBuilder<T> instance that can be used to configure the FormItemContainer.