Defines the fluent API for configuring the PropertyGridItem settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class PropertyGridItemBuilder<T> where T : class
Inheritance: objectPropertyGridItemBuilder<T>
Inherited Members
Constructors
Initialize the PropertyGridItemBuilder
public PropertyGridItemBuilder(PropertyGridItem settings, ViewContext viewContext, IUrlGenerator generator)
The PropertyGridItem
viewContextViewContextgeneratorIUrlGeneratorMethods
Sets the description for the property.
public PropertyGridItemBuilder<T> Description(string value)
The value that configures the description.
Returns: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.
public PropertyGridItemBuilder<T> Editable(bool value)
The value that configures the editable.
Returns:Maps to the model field which will be configured and sets the name of the input.
public PropertyGridItemBuilder<T> Editor(Action<PropertyGridItemEditorBuilder<T>> configurator)
Maps to the model field which will be configured and sets the name of the input.
public PropertyGridItemBuilder<T> Editor(string value)
The value that configures the editor.
Returns:Maps the item configuration to the model property.
public PropertyGridItemBuilder<T> Field(string value)
The value that configures the field.
Returns:Maps the item configuration to the model property.
public PropertyGridItemBuilder<T> Field<TValue>(Expression<Func<T, TValue>> expression)
The expression that specifies the field, based on the bound model.
Returns: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".
public PropertyGridItemBuilder<T> FieldType(string value)
The value for FieldType
Returns: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.
public PropertyGridItemBuilder<T> Format(string value)
The value that configures the format.
Returns:Sets the name of the group to which the property will belong, if grouping is enabled. Only root level items can be grouped.
public PropertyGridItemBuilder<T> Group(string value)
The value that configures the group.
Returns:Additional configuration options for the properties of the model.
public PropertyGridItemBuilder<T> Items(Action<PropertyGridItemFactory<T>> configurator)
The configurator for the items setting.
Returns:The template which is rendered for the property's value.
public PropertyGridItemBuilder<T> Template(string value)
The value that configures the template.
Returns:The template which is rendered for the property's value.
public PropertyGridItemBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:The template which is rendered for the property's value.
public PropertyGridItemBuilder<T> TemplateHandler(string value)
The value that configures the template.
Returns:The template which is rendered for the property's value.
public PropertyGridItemBuilder<T> TemplateId(string value)
The value that configures the template.
Returns:The template which is rendered for the property's value.
public PropertyGridItemBuilder<T> TemplateView(MvcHtmlString value)
The value that configures the template.
Returns: