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

Defines the fluent API for configuring PropertyGridItem

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectPropertyGridItemBuilder<T>

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

Constructors

PropertyGridItemBuilder method.

C#
public PropertyGridItemBuilder(PropertyGridItem<T> container)
Parameters:containerPropertyGridItem<T>

Properties

Gets or sets the Container.

C#
protected PropertyGridItem<T> Container { get; }

Methods

Sets the description for the property.

C#
public PropertyGridItemBuilder<T> Description(string value)
Parameters:valuestring

The value for Description

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

The JavaScript function that is executed when the value cell is about to be opened for editing. The returned result will determine whether an editor will be created.

C#
public PropertyGridItemBuilder<T> Editable(bool value)
Parameters:valuebool

The value for Editable

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

The JavaScript function that is executed when the value cell is about to be opened for editing. The returned result will determine whether an editor will be created.

C#
public PropertyGridItemBuilder<T> EditableHandler(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

The JavaScript function that is executed when the value cell is about to be opened for editing. The returned result will determine whether an editor will be created.

C#
public PropertyGridItemBuilder<T> EditableHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

Maps to the model field which will be configured and sets the name of the input.

C#
public PropertyGridItemBuilder<T> Editor(Action<PropertyGridItemEditorBuilder<T>> configurator)
Parameters:configuratorAction<PropertyGridItemEditorBuilder<T>>

The expression that specifies the field, based on the bound model.

Returns:

PropertyGridItemBuilder<T>

The current instance of the PropertyGridItemBuilder<T>.

Provides a way to specify a custom editing UI for the value of the property. To create the editing UI, use the container parameter.When used as String, defines the editor component type. Set the options for the component via the items.editorOptions.For further info check the Form API: field

C#
public PropertyGridItemBuilder<T> Editor(string value)
Parameters:valuestring

The value for Editor

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

Provides a way to specify a custom editing UI for the value of the property. To create the editing UI, use the container parameter.When used as String, defines the editor component type. Set the options for the component via the items.editorOptions.For further info check the Form API: field

C#
public PropertyGridItemBuilder<T> EditorHandler(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

Provides a way to specify a custom editing UI for the value of the property. To create the editing UI, use the container parameter.When used as String, defines the editor component type. Set the options for the component via the items.editorOptions.For further info check the Form API: field

C#
public PropertyGridItemBuilder<T> EditorHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

Maps the item configuration to the model property.

C#
public PropertyGridItemBuilder<T> Field(string value)
Parameters:valuestring

The value for Field

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

Maps to the model field which will be configured and sets the name of the input.

C#
public PropertyGridItemBuilder<T> Field<TValue>(Expression<Func<T, TValue>> expression)
Parameters:expressionExpression<Func<T, TValue>>

The expression that specifies the field, based on the bound model.

Returns:

PropertyGridItemBuilder<T>

The current instance of the PropertyGridItemBuilder<T>.

Specifies the JavaScript type of the field value. Used to determine the correct default editor when the model value is null. Accepted values are "string", "number", "boolean", and "date".

C#
public PropertyGridItemBuilder<T> FieldType(string value)
Parameters:valuestring

The value for FieldType

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

The format that is applied to the value before it is displayed. Takes the {0:format} form where format is a standard number format, custom number format, standard date format or a custom date format.

C#
public PropertyGridItemBuilder<T> Format(string value)
Parameters:valuestring

The value for Format

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

Sets the name of the group to which the property will belong, if grouping is enabled. Only root level items can be grouped.

C#
public PropertyGridItemBuilder<T> Group(string value)
Parameters:valuestring

The value for Group

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

Additional configuration options for the properties of the model.

C#
public PropertyGridItemBuilder<T> Items(Action<PropertyGridItemFactory<T>> configurator)
Parameters:configuratorAction<PropertyGridItemFactory<T>>

The configurator for the items setting.

Returns:

PropertyGridItemBuilder<T>

The current instance of the PropertyGridItemBuilder<T>.

The template which is rendered for the property's value.

C#
public PropertyGridItemBuilder<T> Template(string value)
Parameters:valuestring

The value for Template

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

The template which is rendered for the property's value.

C#
public PropertyGridItemBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

The template which is rendered for the property's value.

C#
public PropertyGridItemBuilder<T> TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

The template which is rendered for the property's value.

C#
public PropertyGridItemBuilder<T> TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.

The template which is rendered for the property's value.

C#
public PropertyGridItemBuilder<T> TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

PropertyGridItemBuilder<T>

Returns the current PropertyGridItemBuilder<T> instance.