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

Defines the fluent API for configuring the PropertyGridItem settings.

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

Initialize the PropertyGridItemBuilder

C#
public PropertyGridItemBuilder(PropertyGridItem settings, ViewContext viewContext, IUrlGenerator generator)
Parameters:settingsPropertyGridItem

The PropertyGridItem

viewContextViewContextgeneratorIUrlGenerator

Methods

Sets the description for the property.

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

The value that configures the description.

Returns:

PropertyGridItemBuilder<T>

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 that configures the editable.

Returns:

PropertyGridItemBuilder<T>

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>>Returns:

PropertyGridItemBuilder<T>

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

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

The value that configures the editor.

Returns:

PropertyGridItemBuilder<T>

Maps the item configuration to the model property.

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

The value that configures the field.

Returns:

PropertyGridItemBuilder<T>

Maps the item configuration to the model property.

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>

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>

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 that configures the format.

Returns:

PropertyGridItemBuilder<T>

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 that configures the group.

Returns:

PropertyGridItemBuilder<T>

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 template which is rendered for the property's value.

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

The value that configures the template.

Returns:

PropertyGridItemBuilder<T>

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>

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

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

The value that configures the template.

Returns:

PropertyGridItemBuilder<T>

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

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

The value that configures the template.

Returns:

PropertyGridItemBuilder<T>

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

C#
public PropertyGridItemBuilder<T> TemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the template.

Returns:

PropertyGridItemBuilder<T>