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

Factory for creating FormItem instances.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class FormItemFactory<T>

Inheritance: objectFormItemFactory<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 FormItemFactory<T> class.

C#
public FormItemFactory(List<FormItem> container, ViewContext viewContext)
Parameters:containerList<FormItem>viewContextViewContext

Properties

Gets or sets the Container.

C#
protected List<FormItem> Container { get; }

Methods

Adds an item to the collection

C#
public virtual FormItemBuilder<T> Add()
Returns:

FormItemBuilder<T>

Returns a FormItemBuilder<T> with the available configuration options.

Adds the AntiForgeryToken input to the collection

C#
public virtual FormItemsContainerBuilder<T> AddAntiForgeryToken(IHtmlContent antiForgeryToken)
Parameters:antiForgeryTokenIHtmlContentReturns:

FormItemsContainerBuilder<T>

Returns a FormItemsContainerBuilder<T> with the available configuration options.

Adds an item to the collection

C#
public virtual FormItemsContainerBuilder<T> AddGroup()
Returns:

FormItemsContainerBuilder<T>

Returns a FormItemsContainerBuilder<T> with the available configuration options.